[PATCH 3/4] cpumask: cpu_coregroup_mask(): s390

From: Rusty Russell
Date: Mon Dec 01 2008 - 01:17:35 EST


Like cpu_coregroup_map, but returns a (const) pointer.

Signed-off-by: Rusty Russell <rusty@xxxxxxxxxxxxxxx>
Signed-off-by: Mike Travis <travis@xxxxxxx>
---
arch/s390/include/asm/topology.h | 1 +
arch/s390/kernel/topology.c | 5 +++++
2 files changed, 6 insertions(+)

diff -r 2d272f7b3a9b arch/s390/include/asm/topology.h
--- a/arch/s390/include/asm/topology.h Thu Nov 20 13:55:47 2008 +1030
+++ b/arch/s390/include/asm/topology.h Thu Nov 20 13:57:21 2008 +1030
@@ -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];

diff -r 2d272f7b3a9b arch/s390/kernel/topology.c
--- a/arch/s390/kernel/topology.c Thu Nov 20 13:55:47 2008 +1030
+++ b/arch/s390/kernel/topology.c Thu Nov 20 13:57:21 2008 +1030
@@ -91,6 +91,11 @@
if (cpus_empty(mask))
mask = cpumask_of_cpu(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)


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/