topology.h 551 B

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