]> err.no Git - linux-2.6/blobdiff - include/asm-generic/topology.h
[PATCH] remove verify_area(): remove or edit references to verify_area in Documentation/
[linux-2.6] / include / asm-generic / topology.h
index ec96e8b0f1901e7c8045415eef2cbd2c247b46dc..5d9d70cd17fc41fecef6095b4322381c23a8a3f8 100644 (file)
 #ifndef node_to_first_cpu
 #define node_to_first_cpu(node)        (0)
 #endif
+#ifndef pcibus_to_node
+#define pcibus_to_node(node)   (-1)
+#endif
+
 #ifndef pcibus_to_cpumask
-#define pcibus_to_cpumask(bus) (cpu_online_map)
+#define pcibus_to_cpumask(bus) (pcibus_to_node(bus) == -1 ? \
+                                       CPU_MASK_ALL : \
+                                       node_to_cpumask(pcibus_to_node(bus)) \
+                               )
 #endif
 
 #endif /* _ASM_GENERIC_TOPOLOGY_H */