summaryrefslogtreecommitdiffstats
path: root/arch/sh
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2009-04-07 17:11:15 -0700
committerPaul Mundt <lethal@linux-sh.org>2009-04-07 17:11:15 -0700
commitb35346fd25f3c8c0b6afeb778f8c4f41c5703c84 (patch)
tree9ae4bfb09f8046ba2c2d4e3ddfd87a67fb15100f /arch/sh
parent6e9793812583e3c9e3674c8c8af1b114afae8673 (diff)
downloadlinux-b35346fd25f3c8c0b6afeb778f8c4f41c5703c84.tar.bz2
sh: Provide cpumask_of_pcibus() to fix NUMA build.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh')
-rw-r--r--arch/sh/include/asm/topology.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/sh/include/asm/topology.h b/arch/sh/include/asm/topology.h
index a3f239545897..8489a0905a87 100644
--- 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>