Skip to content

Commit 2db52dc

Browse files
Alexander GordeevVasily Gorbik
authored andcommitted
s390/cpuinfo: show number of online CPUs within a package
Show number of online CPUs within a package (which is the socket in case of s390). For what it worth, present that value as "siblings" field - just like x86 does. Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com> Reviewed-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
1 parent 9596849 commit 2db52dc

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎arch/s390/kernel/processor.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ static void show_cpu_topology(struct seq_file *m, unsigned long n)
160160
seq_printf(m, "drawer id : %d\n", topology_drawer_id(n));
161161
seq_printf(m, "dedicated : %d\n", topology_cpu_dedicated(n));
162162
seq_printf(m, "address : %d\n", smp_cpu_get_cpu_address(n));
163+
seq_printf(m, "siblings : %d\n", cpumask_weight(topology_core_cpumask(n)));
163164
seq_printf(m, "cpu cores : %d\n", topology_booted_cores(n));
164165
#endif /* CONFIG_SCHED_TOPOLOGY */
165166
}

0 commit comments

Comments
 (0)