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 |
David S. Miller | f78eae2 | 2007-06-04 17:01:39 -0700 | [diff] [blame] | 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]) |
Mike Travis | d5a7430 | 2007-10-16 01:24:05 -0700 | [diff] [blame] | 8 | #define topology_thread_siblings(cpu) (per_cpu(cpu_sibling_map, cpu)) |
David S. Miller | a2f9f6b | 2007-06-04 21:48:33 -0700 | [diff] [blame] | 9 | #define mc_capable() (sparc64_multi_core) |
| 10 | #define smt_capable() (sparc64_multi_core) |
David S. Miller | f78eae2 | 2007-06-04 17:01:39 -0700 | [diff] [blame] | 11 | #endif /* CONFIG_SMP */ |
Siddha, Suresh B | 5c45bf2 | 2006-06-27 02:54:42 -0700 | [diff] [blame] | 12 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | #include <asm-generic/topology.h> |
| 14 | |
David S. Miller | f78eae2 | 2007-06-04 17:01:39 -0700 | [diff] [blame] | 15 | #define cpu_coregroup_map(cpu) (cpu_core_map[cpu]) |
David S. Miller | 5cbc307 | 2007-05-25 15:49:59 -0700 | [diff] [blame] | 16 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 17 | #endif /* _ASM_SPARC64_TOPOLOGY_H */ |