cpumask: IA64: Introduce cpumask_of_pcibus to replace pcibus_to_cpumask()

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

diff -r 0638ba77bc0b arch/ia64/include/asm/topology.h
--- a/arch/ia64/include/asm/topology.h	Thu Nov 06 23:37:48 2008 +1100
+++ b/arch/ia64/include/asm/topology.h	Thu Nov 06 23:38:37 2008 +1100
@@ -122,6 +122,10 @@ extern void arch_fix_phys_package_id(int
 					node_to_cpumask(pcibus_to_node(bus)) \
 				)
 
+#define cpumask_of_pcibus(bus)	(pcibus_to_node(bus) == -1 ?		\
+				 cpu_all_mask :				\
+				 cpumask_from_node(pcibus_to_node(bus)))
+
 #include <asm-generic/topology.h>
 
 #endif /* _ASM_IA64_TOPOLOGY_H */
