| #ifndef _ASM_SPARC64_TOPOLOGY_H |
| #define _ASM_SPARC64_TOPOLOGY_H |
| static inline int cpu_to_node(int cpu) |
| return numa_cpu_lookup_table[cpu]; |
| #define parent_node(node) (node) |
| #define cpumask_of_node(node) ((node) == -1 ? \ |
| &numa_cpumask_lookup_table[node]) |
| int pcibus_to_node(struct pci_bus *pbus); |
| static inline int pcibus_to_node(struct pci_bus *pbus) |
| #define cpumask_of_pcibus(bus) \ |
| (pcibus_to_node(bus) == -1 ? \ |
| cpumask_of_node(pcibus_to_node(bus))) |
| #include <asm-generic/topology.h> |
| #endif /* !(CONFIG_NUMA) */ |
| #define topology_physical_package_id(cpu) (cpu_data(cpu).proc_id) |
| #define topology_core_id(cpu) (cpu_data(cpu).core_id) |
| #define topology_core_cpumask(cpu) (&cpu_core_sib_map[cpu]) |
| #define topology_sibling_cpumask(cpu) (&per_cpu(cpu_sibling_map, cpu)) |
| extern cpumask_t cpu_core_map[NR_CPUS]; |
| extern cpumask_t cpu_core_sib_map[NR_CPUS]; |
| static inline const struct cpumask *cpu_coregroup_mask(int cpu) |
| return &cpu_core_map[cpu]; |
| #endif /* _ASM_SPARC64_TOPOLOGY_H */ |