blob: 290ac75f385bee443a24eb9bba11fb70783edc46 [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
David S. Millerf78eae22007-06-04 17:01:39 -07005#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])
David S. Millera2f9f6b2007-06-04 21:48:33 -07009#define mc_capable() (sparc64_multi_core)
10#define smt_capable() (sparc64_multi_core)
David S. Millerf78eae22007-06-04 17:01:39 -070011#endif /* CONFIG_SMP */
Siddha, Suresh B5c45bf22006-06-27 02:54:42 -070012
Linus Torvalds1da177e2005-04-16 15:20:36 -070013#include <asm-generic/topology.h>
14
David S. Millerf78eae22007-06-04 17:01:39 -070015#define cpu_coregroup_map(cpu) (cpu_core_map[cpu])
David S. Miller5cbc3072007-05-25 15:49:59 -070016
Linus Torvalds1da177e2005-04-16 15:20:36 -070017#endif /* _ASM_SPARC64_TOPOLOGY_H */