Skip to contentSkip to conversation

cpumask: cpu_coregroup_mask(): sparc

PATCH In review Rusty Russell 1 participant 1 message Dec 1, 2008 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore
#0 lore raw

PATCH 2/4 cpumask: cpu_coregroup_mask(): sparc

Like cpu_coregroup_map, but returns a (const) pointer.

---
 arch/sparc/include/asm/topology_64.h |    1 +
 1 file changed, 1 insertion(+)
arch/sparc/include/asm/topology_64.h +1 -0
diff -r de5f2bede0a7 arch/sparc/include/asm/topology_64.h
@@ -83,6 +83,7 @@
 #define smt_capable()				(sparc64_multi_core)
 #endif /* CONFIG_SMP */
 
 #define cpu_coregroup_map(cpu)			(cpu_core_map[cpu])
+#define cpu_coregroup_mask(cpu)			(&cpu_core_map[cpu])
 
 #endif /* _ASM_SPARC64_TOPOLOGY_H */