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/performance/odp_pktio_perf.c | |
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/performance/odp_pktio_perf.c')
-rw-r--r-- | test/performance/odp_pktio_perf.c | 2 |
1 files changed, 1 insertions, 1 deletions
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", |