1 #ifndef _ASM_MACH_TOPOLOGY_H 2 #define _ASM_MACH_TOPOLOGY_H 3 4 #ifdef CONFIG_NUMA 5 6 #define cpu_to_node(cpu) (cpu_logical_map(cpu) >> 2) 7 #define cpumask_of_node(node) (&__node_data[(node)]->cpumask) 8 9 struct pci_bus; 10 extern int pcibus_to_node(struct pci_bus *); 11 12 #define cpumask_of_pcibus(bus) (cpu_online_mask) 13 14 extern unsigned char __node_distances[MAX_NUMNODES][MAX_NUMNODES]; 15 16 #define node_distance(from, to) (__node_distances[(from)][(to)]) 17 18 #endif 19 20 #include <asm-generic/topology.h> 21 22 #endif /* _ASM_MACH_TOPOLOGY_H */ 23