diff options
author | Petri Savolainen <petri.savolainen@nokia.com> | 2016-06-02 10:06:44 +0300 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2016-06-07 18:24:33 +0300 |
commit | 7737982f70f5416862fdd54c9103a7eff6a28d83 (patch) | |
tree | 0ff309b9267141fb82930255e59b77559917132b /platform/linux-generic/odp_init.c | |
parent | 748b3a0e82dc0531f6e2c173fe57b09595b6d0a8 (diff) |
linux-generic: sched: add init functions to interface
Added global/local init and term functions to the scheduler
interface.
Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com>
Reviewed-and-tested-by: Bill Fischofer <bill.fischofer@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'platform/linux-generic/odp_init.c')
-rw-r--r-- | platform/linux-generic/odp_init.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/platform/linux-generic/odp_init.c b/platform/linux-generic/odp_init.c index 35cc5eb22..f58f41078 100644 --- a/platform/linux-generic/odp_init.c +++ b/platform/linux-generic/odp_init.c @@ -7,6 +7,8 @@ #include <odp_debug_internal.h> #include <odp/api/debug.h> #include <unistd.h> +#include <odp_internal.h> +#include <odp_schedule_if.h> struct odp_global_data_s odp_global_data; @@ -72,7 +74,7 @@ int odp_init_global(odp_instance_t *instance, } stage = QUEUE_INIT; - if (odp_schedule_init_global()) { + if (sched_fn->init_global()) { ODP_ERR("ODP schedule init failed.\n"); goto init_failed; } @@ -181,7 +183,7 @@ int _odp_term_global(enum init_stage stage) /* Fall through */ case SCHED_INIT: - if (odp_schedule_term_global()) { + if (sched_fn->term_global()) { ODP_ERR("ODP schedule term failed.\n"); rc = -1; } @@ -276,7 +278,7 @@ int odp_init_local(odp_instance_t instance, odp_thread_type_t thr_type) } stage = POOL_INIT; - if (odp_schedule_init_local()) { + if (sched_fn->init_local()) { ODP_ERR("ODP schedule local init failed.\n"); goto init_fail; } @@ -303,7 +305,7 @@ int _odp_term_local(enum init_stage stage) case ALL_INIT: case SCHED_INIT: - if (odp_schedule_term_local()) { + if (sched_fn->term_local()) { ODP_ERR("ODP schedule local term failed.\n"); rc = -1; } |