blob: c6b557034f686623ab59a6a109b92302b5e4a3d2 [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])
Mike Travisd5a74302007-10-16 01:24:05 -07008#define topology_thread_siblings(cpu) (per_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 */