]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lscpu: only try to read sysfs attributes of present CPUs
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Fri, 29 Jul 2016 12:13:34 +0000 (14:13 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 3 Aug 2016 11:35:05 +0000 (13:35 +0200)
commit0002704ebe998d70af87d4385cc243baae7b2059
treed869517b09f3deb640ffb198053ea42bffa0bbcb
parent0be8771a71059b968e6f02f3cbeb4c4a17f6d46c
lscpu: only try to read sysfs attributes of present CPUs

lscpu can skip all CPUs which are possible but not present. For
configurations where a lot of CPUs are possible but only few CPUs are
present this saves a lot of pointless glibc/system calls.

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