Merge git://git.kernel.org/pub/scm/linux/kernel/git/wim/linux-2.6-watchdog
[pandora-kernel.git] / include / asm-sparc64 / topology.h
1 #ifndef _ASM_SPARC64_TOPOLOGY_H
2 #define _ASM_SPARC64_TOPOLOGY_H
3
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)           (cpu_sibling_map[cpu])
9 #define mc_capable()                            (sparc64_multi_core)
10 #define smt_capable()                           (sparc64_multi_core)
11 #endif /* CONFIG_SMP */
12
13 #include <asm-generic/topology.h>
14
15 #define cpu_coregroup_map(cpu)                  (cpu_core_map[cpu])
16
17 #endif /* _ASM_SPARC64_TOPOLOGY_H */