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 | |
Siddha, Suresh B | 5c45bf2 | 2006-06-27 02:54:42 -0700 | [diff] [blame] | 4 | #include <asm/spitfire.h> |
| 5 | #define smt_capable() (tlb_type == hypervisor) |
| 6 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 7 | #include <asm-generic/topology.h> |
| 8 | |
David S. Miller | 5cbc307 | 2007-05-25 15:49:59 -0700 | [diff] [blame^] | 9 | #define topology_core_id(cpu) (cpu_data(cpu).core_id) |
| 10 | #define topology_thread_siblings(cpu) (cpu_sibling_map[cpu]) |
| 11 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 12 | #endif /* _ASM_SPARC64_TOPOLOGY_H */ |