]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
sh: Provide cpumask_of_pcibus() to fix NUMA build.
authorPaul Mundt <lethal@linux-sh.org>
Wed, 8 Apr 2009 00:11:15 +0000 (17:11 -0700)
committerPaul 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

index a3f239545897ea5ed72b68714bfc1f8d2f9426c1..8489a0905a8745d5eb7246e3a0922c68bf114909 100644 (file)
 #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>