sparc64: Fix cpumask related build failure
authorDavid Miller <davem@davemloft.net>
Sun, 11 Jan 2009 12:06:40 +0000 (04:06 -0800)
committerIngo Molnar <mingo@elte.hu>
Sun, 11 Jan 2009 14:33:24 +0000 (15:33 +0100)
cpumask_of_pcibus() was missing - this triggers on NUMA builds.

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/sparc/include/asm/topology_64.h

index b8a65b64e1dfc3275c41f33d74c993ba527e5843..5bc0b8fd63744f477f7ade478e42922175649c28 100644 (file)
@@ -47,6 +47,10 @@ static inline int pcibus_to_node(struct pci_bus *pbus)
        (pcibus_to_node(bus) == -1 ? \
         CPU_MASK_ALL : \
         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)))
 
 #define SD_NODE_INIT (struct sched_domain) {           \
        .min_interval           = 8,                    \