Commit 143b5ba2 authored by Amir Vadai's avatar Amir Vadai Committed by David S. Miller

lib/cpumask: cpumask_set_cpu_local_first to use all cores when numa node is not defined

When device is non numa aware (numa_node == -1), use all online cpu's.
Signed-off-by: default avatarAmir Vadai <amirv@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 35f6f453
...@@ -191,7 +191,7 @@ int cpumask_set_cpu_local_first(int i, int numa_node, cpumask_t *dstp) ...@@ -191,7 +191,7 @@ int cpumask_set_cpu_local_first(int i, int numa_node, cpumask_t *dstp)
i %= num_online_cpus(); i %= num_online_cpus();
if (!cpumask_of_node(numa_node)) { if (numa_node == -1 || !cpumask_of_node(numa_node)) {
/* Use all online cpu's for non numa aware system */ /* Use all online cpu's for non numa aware system */
cpumask_copy(mask, cpu_online_mask); cpumask_copy(mask, cpu_online_mask);
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment