0001
0002 #ifndef _ASM_MACH_TOPOLOGY_H
0003 #define _ASM_MACH_TOPOLOGY_H
0004
0005 #ifdef CONFIG_NUMA
0006
0007 #define cpu_to_node(cpu) (cpu_logical_map(cpu) >> 2)
0008
0009 extern cpumask_t __node_cpumask[];
0010 #define cpumask_of_node(node) (&__node_cpumask[node])
0011
0012 struct pci_bus;
0013 extern int pcibus_to_node(struct pci_bus *);
0014
0015 #define cpumask_of_pcibus(bus) (cpu_online_mask)
0016
0017 extern unsigned char __node_distances[MAX_NUMNODES][MAX_NUMNODES];
0018
0019 #define node_distance(from, to) (__node_distances[(from)][(to)])
0020
0021 #endif
0022
0023 #include <asm-generic/topology.h>
0024
0025 #endif