Commit 143b5ba21b2bd5091cd8dcd92de7ba1ed1d1c83c

Authored by Amir Vadai
Committed by David S. Miller
1 parent 35f6f45368

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: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -191,7 +191,7 @@
191 191  
192 192 i %= num_online_cpus();
193 193  
194   - if (!cpumask_of_node(numa_node)) {
  194 + if (numa_node == -1 || !cpumask_of_node(numa_node)) {
195 195 /* Use all online cpu's for non numa aware system */
196 196 cpumask_copy(mask, cpu_online_mask);
197 197 } else {