aboutsummaryrefslogtreecommitdiff
path: root/test/performance/odp_scheduling.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/performance/odp_scheduling.c')
-rw-r--r--test/performance/odp_scheduling.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/test/performance/odp_scheduling.c b/test/performance/odp_scheduling.c
index 99ff77244..8d388ff55 100644
--- a/test/performance/odp_scheduling.c
+++ b/test/performance/odp_scheduling.c
@@ -892,11 +892,8 @@ int main(int argc, char *argv[])
if (args.cpu_count)
num_workers = args.cpu_count;
- /*
- * By default CPU #0 runs Linux kernel background tasks.
- * Start mapping thread from CPU #1
- */
- num_workers = odph_linux_cpumask_default(&cpumask, num_workers);
+ /* Get default worker cpumask */
+ num_workers = odp_cpumask_def_worker(&cpumask, num_workers);
(void)odp_cpumask_to_str(&cpumask, cpumaskstr, sizeof(cpumaskstr));
printf("num worker threads: %i\n", num_workers);