aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorPetri Savolainen <petri.savolainen@nokia.com>2023-11-28 12:35:37 +0200
committerPetri Savolainen <petri.savolainen@nokia.com>2023-11-29 09:35:15 +0200
commit7b6e4293fa15f99ae00985f098383ac853d3bbbd (patch)
treed12d79d6e48a2561e31d7241398a292f4fd633b3 /example
parent4549b265e299fca093dbba5be2d108d77735eecf (diff)
example: timer_accuracy: fix CPU count default value
According to help, test runs on single CPU by default. Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
Diffstat (limited to 'example')
-rw-r--r--example/timer/odp_timer_accuracy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/example/timer/odp_timer_accuracy.c b/example/timer/odp_timer_accuracy.c
index 9a4593a9a..05e4e9181 100644
--- a/example/timer/odp_timer_accuracy.c
+++ b/example/timer/odp_timer_accuracy.c
@@ -197,6 +197,7 @@ static int parse_options(int argc, char *argv[], test_opt_t *test_opt)
memset(test_opt, 0, sizeof(*test_opt));
+ test_opt->cpu_count = 1;
test_opt->period_ns = 200 * ODP_TIME_MSEC_IN_NS;
test_opt->res_ns = 0;
test_opt->res_hz = 0;