cpumask: cpu_coregroup_mask(): s390
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 s390 (defconfig).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Mike Travis <travis@sgi.com>
arch/s390/include/asm/topology.h
arch/s390/kernel/topology.c

index d96c916434586c3ea05abdac4ff451f0caa08465..fff4a86c602af3b1b0d65935572177e336c837fa 100644 (file)
@@ -6,6 +6,7 @@
 #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];
 
index a947899dcba1d55f56f8e00af05ab738293df6a3..0601cd3231e4c038e61bb4f9b623992ebe3ddec7 100644 (file)
@@ -93,6 +93,11 @@ cpumask_t cpu_coregroup_map(unsigned int cpu)
        return mask;
 }
 
+const struct cpumask *cpu_coregroup_mask(unsigned int cpu)
+{
+       return &cpu_core_map[cpu];
+}
+
 static void add_cpus_to_core(struct tl_cpu *tl_cpu, struct core_info *core)
 {
        unsigned int cpu;