]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lscpu: add --offline option
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Thu, 15 Sep 2011 06:52:33 +0000 (08:52 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 27 Sep 2011 12:48:33 +0000 (14:48 +0200)
commit7afc23874e2d477dd5140167c5320499ab2cc0a0
treec2ca98826b02171ab22f3c576d8d1567c93c7f0c
parent81137d1c0b717ea973cef7fa9322d643f226a5b1
lscpu: add --offline option

Implement "--offline" option which only prints offline cpus. As a side effect
we can get rid of the internal "allcpus" flag, since if we want to print
informations for online and offline cpus we simply set both flags.

When reading sysfs attributes of cpus this is now done for all cpus, since
e.g. the topology informations of the online cpus may influence the
topology informations of the offline cpus. This mainly because online cpus
may contain masks which include offline cpus while offline cpus have a
missing topology directory.

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