diff options
author | Petri Savolainen <petri.savolainen@nokia.com> | 2015-05-08 10:07:10 +0300 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2015-06-10 18:42:23 +0300 |
commit | 911861692e36af9a76ee8b77537eb0957714e403 (patch) | |
tree | 11c88dc5e7b5d3bdc3d66779cffeb3ebfa68c482 /test | |
parent | 6891037b0ccb4e2075d9e9faaa8568c95119f565 (diff) |
api: init: added thread type to local init
User needs to select the thread type (worker or control) of
the initialized thread. Implementation may reserve HW direct access
only to worker threads, while control threads share HW access, etc.
Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'test')
-rw-r--r-- | test/performance/odp_l2fwd.c | 2 | ||||
-rw-r--r-- | test/performance/odp_pktio_perf.c | 2 | ||||
-rw-r--r-- | test/performance/odp_scheduling.c | 2 | ||||
-rw-r--r-- | test/validation/common/odp_cunit_common.c | 2 | ||||
-rw-r--r-- | test/validation/odp_crypto.c | 2 | ||||
-rw-r--r-- | test/validation/odp_synchronizers.c | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/test/performance/odp_l2fwd.c b/test/performance/odp_l2fwd.c index 17ae1b7..9ff159b 100644 --- a/test/performance/odp_l2fwd.c +++ b/test/performance/odp_l2fwd.c @@ -367,7 +367,7 @@ int main(int argc, char *argv[]) } /* Init this thread */ - if (odp_init_local()) { + if (odp_init_local(ODP_THREAD_CONTROL)) { LOG_ERR("Error: ODP local init failed.\n"); exit(EXIT_FAILURE); } diff --git a/test/performance/odp_pktio_perf.c b/test/performance/odp_pktio_perf.c index a97257f..7a4582e 100644 --- a/test/performance/odp_pktio_perf.c +++ b/test/performance/odp_pktio_perf.c @@ -966,7 +966,7 @@ int main(int argc, char **argv) if (odp_init_global(NULL, NULL) != 0) LOG_ABORT("Failed global init.\n"); - if (odp_init_local() != 0) + if (odp_init_local(ODP_THREAD_CONTROL) != 0) LOG_ABORT("Failed local init.\n"); shm = odp_shm_reserve("test_globals", diff --git a/test/performance/odp_scheduling.c b/test/performance/odp_scheduling.c index 6f58524..1fbeb94 100644 --- a/test/performance/odp_scheduling.c +++ b/test/performance/odp_scheduling.c @@ -860,7 +860,7 @@ int main(int argc, char *argv[]) * Init this thread. It makes also ODP calls when * setting up resources for worker threads. */ - if (odp_init_local()) { + if (odp_init_local(ODP_THREAD_CONTROL)) { LOG_ERR("ODP global init failed.\n"); return -1; } diff --git a/test/validation/common/odp_cunit_common.c b/test/validation/common/odp_cunit_common.c index 481ea3d..4be637b 100644 --- a/test/validation/common/odp_cunit_common.c +++ b/test/validation/common/odp_cunit_common.c @@ -45,7 +45,7 @@ ODP_WEAK_SYMBOL int tests_global_init(void) fprintf(stderr, "error: odp_init_global() failed.\n"); return -1; } - if (0 != odp_init_local()) { + if (0 != odp_init_local(ODP_THREAD_CONTROL)) { fprintf(stderr, "error: odp_init_local() failed.\n"); return -1; } diff --git a/test/validation/odp_crypto.c b/test/validation/odp_crypto.c index 3070fd5..f0a3ff8 100644 --- a/test/validation/odp_crypto.c +++ b/test/validation/odp_crypto.c @@ -32,7 +32,7 @@ int tests_global_init(void) fprintf(stderr, "error: odp_init_global() failed.\n"); return -1; } - if (0 != odp_init_local()) { + if (0 != odp_init_local(ODP_THREAD_CONTROL)) { fprintf(stderr, "error: odp_init_local() failed.\n"); return -1; } diff --git a/test/validation/odp_synchronizers.c b/test/validation/odp_synchronizers.c index 71342d1..8839dce 100644 --- a/test/validation/odp_synchronizers.c +++ b/test/validation/odp_synchronizers.c @@ -1055,7 +1055,7 @@ int tests_global_init(void) fprintf(stderr, "error: odp_init_global() failed.\n"); return -1; } - if (0 != odp_init_local()) { + if (0 != odp_init_local(ODP_THREAD_CONTROL)) { fprintf(stderr, "error: odp_init_local() failed.\n"); return -1; } |