cpumask: Introduce cpumask_of_pcibus to replace pcibus_to_cpumask()

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

diff -r 150a6fd98376 include/asm-generic/topology.h
--- a/include/asm-generic/topology.h	Fri Nov 07 11:22:45 2008 +1100
+++ b/include/asm-generic/topology.h	Fri Nov 07 11:43:45 2008 +1100
@@ -57,6 +57,12 @@
 				)
 #endif
 
+#ifndef cpumask_of_pcibus
+#define cpumask_of_pcibus(bus)	(pcibus_to_node(bus) == -1 ?		\
+				 cpu_all_mask :				\
+				 cpumask_of_node(pcibus_to_node(bus)))
+#endif
+
 #endif	/* CONFIG_NUMA */
 
 /* returns pointer to cpumask for specified node */
