]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lscpu: use hypervisor generated topology information
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Wed, 10 Aug 2011 08:34:31 +0000 (10:34 +0200)
committerHeiko Carstens <heiko.carstens@de.ibm.com>
Sun, 14 Aug 2011 15:34:26 +0000 (17:34 +0200)
commit8648ca961f64b81194fe20dc88a5d64196198a79
treee05928ff7bc60042292ec8be82b2e0b3ba9e1b8f
parentb8ec7bdfeb75cff8a4374e87d06783b121e0ecd5
lscpu: use hypervisor generated topology information

The readable output prints also informations like cores per socket etc.
On newer kernel versions on s390 this information is available via
/proc/sysinfo. However it does not contain the layout of the guest but
the layout of the real machine.
Nevertheless this is better than random guessing with completely broken
numbers like we have it now on s390. If the information is not available
we fall back to old mechanism with more or less random numbers.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
sys-utils/lscpu.c