diff options
Diffstat (limited to 'test/performance/odp_timer_perf.c')
-rw-r--r-- | test/performance/odp_timer_perf.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/performance/odp_timer_perf.c b/test/performance/odp_timer_perf.c index 6989d0d4c..a45081643 100644 --- a/test/performance/odp_timer_perf.c +++ b/test/performance/odp_timer_perf.c @@ -795,13 +795,14 @@ static int start_workers(test_global_t *global, odp_instance_t instance) odph_thread_param_t thr_param[num_cpu]; memset(global->thread_tbl, 0, sizeof(global->thread_tbl)); - memset(thr_param, 0, sizeof(thr_param)); - memset(&thr_common, 0, sizeof(thr_common)); + odph_thread_common_param_init(&thr_common); thr_common.instance = instance; thr_common.cpumask = &global->cpumask; for (i = 0; i < num_cpu; i++) { + odph_thread_param_init(&thr_param[i]); + if (test_options->mode == MODE_SCHED_OVERH) thr_param[i].start = sched_mode_worker; else |