blob: 4880f7ca0b608d300a05d4c9c299aa70cb0a4280 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _ASM_SPARC64_TOPOLOGY_H
2#define _ASM_SPARC64_TOPOLOGY_H
3
David S. Millerf78eae22007-06-04 17:01:39 -07004#ifdef CONFIG_SMP
Siddha, Suresh B5c45bf22006-06-27 02:54:42 -07005#include <asm/spitfire.h>
David S. Millerf78eae22007-06-04 17:01:39 -07006
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 B5c45bf22006-06-27 02:54:42 -070014
Linus Torvalds1da177e2005-04-16 15:20:36 -070015#include <asm-generic/topology.h>
16
David S. Millerf78eae22007-06-04 17:01:39 -070017#define cpu_coregroup_map(cpu) (cpu_core_map[cpu])
David S. Miller5cbc3072007-05-25 15:49:59 -070018
Linus Torvalds1da177e2005-04-16 15:20:36 -070019#endif /* _ASM_SPARC64_TOPOLOGY_H */