cpumask: powerpc: Introduce cpumask_of_pcibus to replace pcibus_to_cpumask()

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
---
 arch/powerpc/include/asm/topology.h |    4 ++++
 1 file changed, 4 insertions(+)

diff -r 55a9b2a51fa0 arch/powerpc/include/asm/topology.h
--- a/arch/powerpc/include/asm/topology.h	Thu Nov 06 23:36:53 2008 +1100
+++ b/arch/powerpc/include/asm/topology.h	Thu Nov 06 23:37:21 2008 +1100
@@ -41,6 +41,10 @@ static inline int pcibus_to_node(struct 
 					CPU_MASK_ALL : \
 					node_to_cpumask(pcibus_to_node(bus)) \
 				)
+
+#define cpumask_of_pcibus(bus)	(pcibus_to_node(bus) == -1 ?		\
+				 cpu_all_mask :				\
+				 cpumask_of_node(pcibus_to_node(bus)))
 
 /* sched_domains SD_NODE_INIT for PPC64 machines */
 #define SD_NODE_INIT (struct sched_domain) {		\
