aboutsummaryrefslogtreecommitdiff
path: root/test/performance
diff options
context:
space:
mode:
authorPetri Savolainen <petri.savolainen@nokia.com>2015-07-09 16:46:20 +0300
committerMaxim Uvarov <maxim.uvarov@linaro.org>2015-07-23 19:21:51 +0300
commit270af813121dd3ba67ce3ed082b49489c3c2dd35 (patch)
treeab8509f296dcb87036f730b704f7ca49955980d3 /test/performance
parentf97e134e3c599d03d56dd6a9820442374ef2f5a3 (diff)
api: helper: deleted odph_linux_cpumask_default
The linux specific helper was replaced by default cpumask calls (odp_cpumask_def_worker()) in the cpumask API. Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com> Reviewed-by: Christophe Milard <christophe.milard@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org> Conflicts: helper/linux.c
Diffstat (limited to 'test/performance')
-rw-r--r--test/performance/odp_atomic.c2
-rw-r--r--test/performance/odp_l2fwd.c7
-rw-r--r--test/performance/odp_pktio_perf.c4
-rw-r--r--test/performance/odp_scheduling.c7
4 files changed, 7 insertions, 13 deletions
diff --git a/test/performance/odp_atomic.c b/test/performance/odp_atomic.c
index 861ab830c..eefce06ce 100644
--- a/test/performance/odp_atomic.c
+++ b/test/performance/odp_atomic.c
@@ -284,7 +284,7 @@ int odp_test_thread_create(void *func_ptr(void *), pthrd_arg *arg)
odp_cpumask_t cpumask;
/* Create and init additional threads */
- odph_linux_cpumask_default(&cpumask, arg->numthrds);
+ odp_cpumask_def_worker(&cpumask, arg->numthrds);
odph_linux_pthread_create(thread_tbl, &cpumask, func_ptr,
(void *)arg);
diff --git a/test/performance/odp_l2fwd.c b/test/performance/odp_l2fwd.c
index c385444a2..157df3b17 100644
--- a/test/performance/odp_l2fwd.c
+++ b/test/performance/odp_l2fwd.c
@@ -399,11 +399,8 @@ int main(int argc, char *argv[])
if (gbl_args->appl.cpu_count)
num_workers = gbl_args->appl.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);
diff --git a/test/performance/odp_pktio_perf.c b/test/performance/odp_pktio_perf.c
index bebbe2222..08f13b628 100644
--- a/test/performance/odp_pktio_perf.c
+++ b/test/performance/odp_pktio_perf.c
@@ -543,8 +543,8 @@ static int setup_txrx_masks(odp_cpumask_t *thd_mask_tx,
int num_workers, num_tx_workers, num_rx_workers;
int i, cpu;
- num_workers = odph_linux_cpumask_default(&cpumask,
- gbl_args->args.cpu_count);
+ num_workers = odp_cpumask_def_worker(&cpumask,
+ gbl_args->args.cpu_count);
if (num_workers < 2) {
LOG_ERR("Need at least two cores\n");
return -1;
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);