cpumask: remove cpu_coregroup_map

cpu_coregroup_mask is the New Hotness.

(S/390 uses theirs internally, so we just make that static)

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
---
 arch/s390/include/asm/topology.h     |    1 -
 arch/s390/kernel/topology.c          |    2 +-
 arch/sparc/include/asm/topology_64.h |    1 -
 arch/x86/include/asm/topology.h      |    1 -
 arch/x86/kernel/smpboot.c            |    5 -----
 5 files changed, 1 insertion(+), 9 deletions(-)

diff -r b0c0cb05a150 arch/s390/include/asm/topology.h
--- a/arch/s390/include/asm/topology.h	Thu Nov 20 13:57:28 2008 +1030
+++ b/arch/s390/include/asm/topology.h	Thu Nov 20 13:58:53 2008 +1030
@@ -5,7 +5,6 @@
 
 #define mc_capable()	(1)
 
-cpumask_t cpu_coregroup_map(unsigned int cpu);
 const struct cpumask *cpu_coregroup_mask(unsigned int cpu);
 
 extern cpumask_t cpu_core_map[NR_CPUS];
diff -r b0c0cb05a150 arch/s390/kernel/topology.c
--- a/arch/s390/kernel/topology.c	Thu Nov 20 13:57:28 2008 +1030
+++ b/arch/s390/kernel/topology.c	Thu Nov 20 13:58:53 2008 +1030
@@ -70,7 +70,7 @@
 
 cpumask_t cpu_core_map[NR_CPUS];
 
-cpumask_t cpu_coregroup_map(unsigned int cpu)
+static cpumask_t cpu_coregroup_map(unsigned int cpu)
 {
 	struct core_info *core = &core_info;
 	unsigned long flags;
diff -r b0c0cb05a150 arch/sparc/include/asm/topology_64.h
--- a/arch/sparc/include/asm/topology_64.h	Thu Nov 20 13:57:28 2008 +1030
+++ b/arch/sparc/include/asm/topology_64.h	Thu Nov 20 13:58:53 2008 +1030
@@ -83,7 +83,6 @@
 #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 */
diff -r b0c0cb05a150 arch/x86/include/asm/topology.h
--- a/arch/x86/include/asm/topology.h	Thu Nov 20 13:57:28 2008 +1030
+++ b/arch/x86/include/asm/topology.h	Thu Nov 20 13:58:53 2008 +1030
@@ -230,7 +230,6 @@
 }
 #endif
 
-extern cpumask_t cpu_coregroup_map(int cpu);
 extern const struct cpumask *cpu_coregroup_mask(int cpu);
 
 #ifdef ENABLE_TOPO_DEFINES
diff -r b0c0cb05a150 arch/x86/kernel/smpboot.c
--- a/arch/x86/kernel/smpboot.c	Thu Nov 20 13:57:28 2008 +1030
+++ b/arch/x86/kernel/smpboot.c	Thu Nov 20 13:58:53 2008 +1030
@@ -508,11 +508,6 @@
 		return &per_cpu(cpu_core_map, cpu);
 	else
 		return &c->llc_shared_map;
-}
-
-cpumask_t cpu_coregroup_map(int cpu)
-{
-	return *cpu_coregroup_mask(cpu);
 }
 
 static void impress_friends(void)
