blob: e0d450d600ec2a7890cc7bca91572f8e56fd472a [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _ASM_SPARC64_TOPOLOGY_H
2#define _ASM_SPARC64_TOPOLOGY_H
3
Siddha, Suresh B5c45bf22006-06-27 02:54:42 -07004#include <asm/spitfire.h>
5#define smt_capable() (tlb_type == hypervisor)
6
Linus Torvalds1da177e2005-04-16 15:20:36 -07007#include <asm-generic/topology.h>
8
David S. Miller5cbc3072007-05-25 15:49:59 -07009#define topology_core_id(cpu) (cpu_data(cpu).core_id)
10#define topology_thread_siblings(cpu) (cpu_sibling_map[cpu])
11
Linus Torvalds1da177e2005-04-16 15:20:36 -070012#endif /* _ASM_SPARC64_TOPOLOGY_H */