diff options
author | Petri Savolainen <petri.savolainen@nokia.com> | 2021-05-28 15:51:08 +0300 |
---|---|---|
committer | Petri Savolainen <petri.savolainen@nokia.com> | 2021-05-31 17:08:32 +0300 |
commit | 8f98e0536dbd40a8cfe5b7191cae65ea3f2db188 (patch) | |
tree | fc6234d1c1726a3dfc3551d9c779e99c35f3ea76 /test/performance/odp_timer_perf.c | |
parent | 188847beca93b50140bae7a7291a72c8bea8c3d6 (diff) |
test: use default clock source enum
Replace ODP_CLOCK_CPU with ODP_CLOCK_DEFAULT on example and
performance test applications.
Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com>
Reviewed-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Janne Peltonen <janne.peltonen@nokia.com>
Diffstat (limited to 'test/performance/odp_timer_perf.c')
-rw-r--r-- | test/performance/odp_timer_perf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/performance/odp_timer_perf.c b/test/performance/odp_timer_perf.c index 4b8318557..6989d0d4c 100644 --- a/test/performance/odp_timer_perf.c +++ b/test/performance/odp_timer_perf.c @@ -307,14 +307,14 @@ static int create_timer_pools(test_global_t *global) global->timer[i][j] = ODP_TIMER_INVALID; } - if (odp_timer_capability(ODP_CLOCK_CPU, &timer_capa)) { + if (odp_timer_capability(ODP_CLOCK_DEFAULT, &timer_capa)) { ODPH_ERR("Timer capability failed\n"); return -1; } memset(&timer_res_capa, 0, sizeof(odp_timer_res_capability_t)); timer_res_capa.res_ns = res_ns; - if (odp_timer_res_capability(ODP_CLOCK_CPU, &timer_res_capa)) { + if (odp_timer_res_capability(ODP_CLOCK_DEFAULT, &timer_res_capa)) { ODPH_ERR("Timer resolution capability failed\n"); return -1; } @@ -352,7 +352,7 @@ static int create_timer_pools(test_global_t *global) timer_pool_param.max_tmo = max_tmo_ns; timer_pool_param.num_timers = num_timer; timer_pool_param.priv = priv; - timer_pool_param.clk_src = ODP_CLOCK_CPU; + timer_pool_param.clk_src = ODP_CLOCK_DEFAULT; odp_pool_param_init(&pool_param); pool_param.type = ODP_POOL_TIMEOUT; |