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 8a10ecb7de4a include/asm-generic/topology.h
--- a/include/asm-generic/topology.h	Tue Nov 18 10:20:00 2008 +1030
+++ b/include/asm-generic/topology.h	Tue Nov 18 10:20:18 2008 +1030
@@ -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 */
 
 /*
