projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e97938
)
sh: Provide cpumask_of_pcibus() to fix NUMA build.
author
Paul Mundt
<lethal@linux-sh.org>
Wed, 8 Apr 2009 00:11:15 +0000
(17:11 -0700)
committer
Paul Mundt
<lethal@linux-sh.org>
Wed, 8 Apr 2009 00:11:15 +0000
(17:11 -0700)
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/include/asm/topology.h
patch
|
blob
|
history
diff --git
a/arch/sh/include/asm/topology.h
b/arch/sh/include/asm/topology.h
index a3f239545897ea5ed72b68714bfc1f8d2f9426c1..8489a0905a8745d5eb7246e3a0922c68bf114909 100644
(file)
--- a/
arch/sh/include/asm/topology.h
+++ b/
arch/sh/include/asm/topology.h
@@
-37,8
+37,11
@@
#define pcibus_to_node(bus) ((void)(bus), -1)
#define pcibus_to_cpumask(bus) (pcibus_to_node(bus) == -1 ? \
CPU_MASK_ALL : \
- node_to_cpumask(pcibus_to_node(bus)) \
- )
+ node_to_cpumask(pcibus_to_node(bus)))
+#define cpumask_of_pcibus(bus) (pcibus_to_node(bus) == -1 ? \
+ CPU_MASK_ALL_PTR : \
+ cpumask_of_node(pcibus_to_node(bus)))
+
#endif
#include <asm-generic/topology.h>