diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2010-05-17 04:00:12 -0400 |
---|---|---|
committer | Martin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com> | 2010-05-17 04:00:16 -0400 |
commit | 10d3858950557cd3cc05f647ede597114c610177 (patch) | |
tree | 5f434f31fb64ef02dc91f99fd895c186379f2b9d /arch/s390/include/asm/topology.h | |
parent | 2dedf0d9eadf39660f2e1686b5d36e4a7515803f (diff) |
[S390] topology: expose core identifier
Provide a topology_core_id define which makes sure that the contents of
/sys/devices/system/cpu/cpuX/topology/core_id
indeed do contain the core id and not always 0.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/include/asm/topology.h')
-rw-r--r-- | arch/s390/include/asm/topology.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/s390/include/asm/topology.h b/arch/s390/include/asm/topology.h index 6e7211abd950..dc8a67297d0f 100644 --- a/arch/s390/include/asm/topology.h +++ b/arch/s390/include/asm/topology.h | |||
@@ -7,8 +7,10 @@ | |||
7 | 7 | ||
8 | const struct cpumask *cpu_coregroup_mask(unsigned int cpu); | 8 | const struct cpumask *cpu_coregroup_mask(unsigned int cpu); |
9 | 9 | ||
10 | extern unsigned char cpu_core_id[NR_CPUS]; | ||
10 | extern cpumask_t cpu_core_map[NR_CPUS]; | 11 | extern cpumask_t cpu_core_map[NR_CPUS]; |
11 | 12 | ||
13 | #define topology_core_id(cpu) (cpu_core_id[cpu]) | ||
12 | #define topology_core_cpumask(cpu) (&cpu_core_map[cpu]) | 14 | #define topology_core_cpumask(cpu) (&cpu_core_map[cpu]) |
13 | 15 | ||
14 | int topology_set_cpu_management(int fc); | 16 | int topology_set_cpu_management(int fc); |