summaryrefslogtreecommitdiffstats
path: root/include/asm-sparc64/topology.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-sparc64/topology.h')
-rw-r--r--include/asm-sparc64/topology.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asm-sparc64/topology.h b/include/asm-sparc64/topology.h
index 98a6c613589..e0d450d600e 100644
--- a/include/asm-sparc64/topology.h
+++ b/include/asm-sparc64/topology.h
@@ -6,4 +6,7 @@
#include <asm-generic/topology.h>
+#define topology_core_id(cpu) (cpu_data(cpu).core_id)
+#define topology_thread_siblings(cpu) (cpu_sibling_map[cpu])
+
#endif /* _ASM_SPARC64_TOPOLOGY_H */