]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
cpumask: cpu_coregroup_mask(): sparc
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 26 Dec 2008 11:53:42 +0000 (22:23 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 26 Dec 2008 11:53:42 +0000 (22:23 +1030)
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>
arch/sparc/include/asm/topology_64.h

index afd3cc1824d72a71242fb6b0551168ace4fafae0..3270cfb1ab53e91755ad15870533ec8aa4e59efb 100644 (file)
@@ -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 */