projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35f6f45
)
lib/cpumask: cpumask_set_cpu_local_first to use all cores when numa node is not defined
author
Amir Vadai
<amirv@mellanox.com>
Sun, 29 Jun 2014 08:54:56 +0000
(11:54 +0300)
committer
David S. Miller
<davem@davemloft.net>
Thu, 3 Jul 2014 01:29:23 +0000
(18:29 -0700)
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>
lib/cpumask.c
patch
|
blob
|
history
diff --git
a/lib/cpumask.c
b/lib/cpumask.c
index
c101230
..
b6513a9
100644
(file)
--- a/
lib/cpumask.c
+++ b/
lib/cpumask.c
@@
-191,7
+191,7
@@
int cpumask_set_cpu_local_first(int i, int numa_node, cpumask_t *dstp)
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 */
cpumask_copy(mask, cpu_online_mask);
} else {