Committer: Michael Beasley <mike@snafu.setup>
[mikesnafu-overlay.git] / include / asm-sparc64 / topology.h
blobc6b557034f686623ab59a6a109b92302b5e4a3d2
1 #ifndef _ASM_SPARC64_TOPOLOGY_H
2 #define _ASM_SPARC64_TOPOLOGY_H
4 #ifdef CONFIG_SMP
5 #define topology_physical_package_id(cpu) (cpu_data(cpu).proc_id)
6 #define topology_core_id(cpu) (cpu_data(cpu).core_id)
7 #define topology_core_siblings(cpu) (cpu_core_map[cpu])
8 #define topology_thread_siblings(cpu) (per_cpu(cpu_sibling_map, cpu))
9 #define mc_capable() (sparc64_multi_core)
10 #define smt_capable() (sparc64_multi_core)
11 #endif /* CONFIG_SMP */
13 #include <asm-generic/topology.h>
15 #define cpu_coregroup_map(cpu) (cpu_core_map[cpu])
17 #endif /* _ASM_SPARC64_TOPOLOGY_H */