Skip to content

Commit 42d211a

Browse files
Alexander GordeevVasily Gorbik
authored andcommitted
s390/cpuinfo: show processor physical address
Show CPU physical address as reported by STAP instruction Signed-off-by: Alexander Gordeev <[email protected]> Reviewed-by: Heiko Carstens <[email protected]> Signed-off-by: Heiko Carstens <[email protected]> Signed-off-by: Vasily Gorbik <[email protected]>
1 parent 3193275 commit 42d211a

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

arch/s390/include/asm/smp.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ extern int smp_vcpu_scheduled(int cpu);
3434
extern void smp_yield_cpu(int cpu);
3535
extern void smp_cpu_set_polarization(int cpu, int val);
3636
extern int smp_cpu_get_polarization(int cpu);
37+
extern int smp_cpu_get_cpu_address(int cpu);
3738
extern void smp_fill_possible_mask(void);
3839
extern void smp_detect_cpus(void);
3940

arch/s390/kernel/processor.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ static void show_cpu_topology(struct seq_file *m, unsigned long n)
159159
seq_printf(m, "book id : %d\n", topology_book_id(n));
160160
seq_printf(m, "drawer id : %d\n", topology_drawer_id(n));
161161
seq_printf(m, "dedicated : %d\n", topology_cpu_dedicated(n));
162+
seq_printf(m, "address : %d\n", smp_cpu_get_cpu_address(n));
162163
#endif /* CONFIG_SCHED_TOPOLOGY */
163164
}
164165

arch/s390/kernel/smp.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -703,6 +703,11 @@ int smp_cpu_get_polarization(int cpu)
703703
return pcpu_devices[cpu].polarization;
704704
}
705705

706+
int smp_cpu_get_cpu_address(int cpu)
707+
{
708+
return pcpu_devices[cpu].address;
709+
}
710+
706711
static void __ref smp_get_core_info(struct sclp_core_info *info, int early)
707712
{
708713
static int use_sigp_detection;

0 commit comments

Comments
 (0)