aboutsummaryrefslogtreecommitdiff
path: root/test/performance/odp_timer_perf.c
diff options
context:
space:
mode:
authorMatias Elo <matias.elo@nokia.com>2023-12-13 14:59:38 +0200
committerMatias Elo <matias.elo@nokia.com>2023-12-20 09:22:57 +0200
commit2a2a53ffacf6e1103b6a689f174af8a1188a9842 (patch)
tree7d9cda53dc9f84d87f401cfee20fa16131defcdf /test/performance/odp_timer_perf.c
parent0f45938e08ed3c013c9649a78084726488e04c1d (diff)
example: start using new odp_timer_pool_start_multi() call
Update example applications to utilize new odp_timer_pool_start_multi() API. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
Diffstat (limited to 'test/performance/odp_timer_perf.c')
-rw-r--r--test/performance/odp_timer_perf.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/performance/odp_timer_perf.c b/test/performance/odp_timer_perf.c
index d5b2a6e03..8632fcb73 100644
--- a/test/performance/odp_timer_perf.c
+++ b/test/performance/odp_timer_perf.c
@@ -394,6 +394,11 @@ static int create_timer_pools(test_global_t *global)
return -1;
}
+ if (odp_timer_pool_start_multi(&tp, 1) != 1) {
+ ODPH_ERR("Timer pool start failed (%u)\n", i);
+ return -1;
+ }
+
pool = odp_pool_create(tp_name, &pool_param);
global->pool[i] = pool;
if (pool == ODP_POOL_INVALID) {
@@ -413,8 +418,6 @@ static int create_timer_pools(test_global_t *global)
global->timer_pool[i].start_tick = odp_timer_ns_to_tick(tp, START_NS);
}
- odp_timer_pool_start();
-
printf(" start %" PRIu64 " tick\n", global->timer_pool[0].start_tick);
printf(" period %" PRIu64 " ticks\n", global->timer_pool[0].period_tick);
printf("\n");