Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef _ASM_SPARC64_TOPOLOGY_H |
| 2 | #define _ASM_SPARC64_TOPOLOGY_H |
| 3 | |
David S. Miller | f78eae2 | 2007-06-04 17:01:39 -0700 | [diff] [blame^] | 4 | #ifdef CONFIG_SMP |
Siddha, Suresh B | 5c45bf2 | 2006-06-27 02:54:42 -0700 | [diff] [blame] | 5 | #include <asm/spitfire.h> |
David S. Miller | f78eae2 | 2007-06-04 17:01:39 -0700 | [diff] [blame^] | 6 | |
| 7 | #define topology_physical_package_id(cpu) (cpu_data(cpu).proc_id) |
| 8 | #define topology_core_id(cpu) (cpu_data(cpu).core_id) |
| 9 | #define topology_core_siblings(cpu) (cpu_core_map[cpu]) |
| 10 | #define topology_thread_siblings(cpu) (cpu_sibling_map[cpu]) |
| 11 | #define mc_capable() (tlb_type == hypervisor) |
| 12 | #define smt_capable() (tlb_type == hypervisor) |
| 13 | #endif /* CONFIG_SMP */ |
Siddha, Suresh B | 5c45bf2 | 2006-06-27 02:54:42 -0700 | [diff] [blame] | 14 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 15 | #include <asm-generic/topology.h> |
| 16 | |
David S. Miller | f78eae2 | 2007-06-04 17:01:39 -0700 | [diff] [blame^] | 17 | #define cpu_coregroup_map(cpu) (cpu_core_map[cpu]) |
David S. Miller | 5cbc307 | 2007-05-25 15:49:59 -0700 | [diff] [blame] | 18 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 19 | #endif /* _ASM_SPARC64_TOPOLOGY_H */ |