summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2008-12-26 11:53:42 (GMT)
committerRusty Russell <rusty@rustcorp.com.au>2008-12-26 11:53:42 (GMT)
commita0ae09b46a516f05ea76e3419ad43c46f52c1165 (patch)
tree59f6a2009ad62756d3bb87b5473d586d8f5391d6
parent030bb203e01db12e3f2866799f4f03a114d06349 (diff)
downloadlinux-a0ae09b46a516f05ea76e3419ad43c46f52c1165.tar.xz
cpumask: cpu_coregroup_mask(): sparc
Like cpu_coregroup_map, but returns a (const) pointer. Compile-tested on sparc64 (defconfig). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Mike Travis <travis@sgi.com>
-rw-r--r--arch/sparc/include/asm/topology_64.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sparc/include/asm/topology_64.h b/arch/sparc/include/asm/topology_64.h
index afd3cc1..3270cfb 100644
--- a/arch/sparc/include/asm/topology_64.h
+++ b/arch/sparc/include/asm/topology_64.h
@@ -84,5 +84,6 @@ static inline int pcibus_to_node(struct pci_bus *pbus)
#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 */