diff options
Diffstat (limited to 'arch/s390')
-rw-r--r-- | arch/s390/include/asm/topology.h | 1 | ||||
-rw-r--r-- | arch/s390/kernel/topology.c | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/arch/s390/include/asm/topology.h b/arch/s390/include/asm/topology.h index d96c91643458..fff4a86c602a 100644 --- a/arch/s390/include/asm/topology.h +++ b/arch/s390/include/asm/topology.h | |||
@@ -6,6 +6,7 @@ | |||
6 | #define mc_capable() (1) | 6 | #define mc_capable() (1) |
7 | 7 | ||
8 | cpumask_t cpu_coregroup_map(unsigned int cpu); | 8 | cpumask_t cpu_coregroup_map(unsigned int cpu); |
9 | const struct cpumask *cpu_coregroup_mask(unsigned int cpu); | ||
9 | 10 | ||
10 | extern cpumask_t cpu_core_map[NR_CPUS]; | 11 | extern cpumask_t cpu_core_map[NR_CPUS]; |
11 | 12 | ||
diff --git a/arch/s390/kernel/topology.c b/arch/s390/kernel/topology.c index a947899dcba1..0601cd3231e4 100644 --- a/arch/s390/kernel/topology.c +++ b/arch/s390/kernel/topology.c | |||
@@ -93,6 +93,11 @@ cpumask_t cpu_coregroup_map(unsigned int cpu) | |||
93 | return mask; | 93 | return mask; |
94 | } | 94 | } |
95 | 95 | ||
96 | const struct cpumask *cpu_coregroup_mask(unsigned int cpu) | ||
97 | { | ||
98 | return &cpu_core_map[cpu]; | ||
99 | } | ||
100 | |||
96 | static void add_cpus_to_core(struct tl_cpu *tl_cpu, struct core_info *core) | 101 | static void add_cpus_to_core(struct tl_cpu *tl_cpu, struct core_info *core) |
97 | { | 102 | { |
98 | unsigned int cpu; | 103 | unsigned int cpu; |