]> err.no Git - util-linux/commit
lscpu: support offline CPUs
authorKarel Zak <kzak@redhat.com>
Wed, 11 Aug 2010 10:43:25 +0000 (12:43 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 11 Aug 2010 10:43:25 +0000 (12:43 +0200)
commitaac1e59ebb205d0ae5a0480900bab22ae34729d9
tree51e792b0bfbec49a644b072d49fae066dadf67b7
parentf2813fcec4a2a8dd98f78b8ee825900c4ba2c282
lscpu: support offline CPUs

 # echo 0 >/sys/devices/system/cpu/cpu3/online
 # echo 0 >/sys/devices/system/cpu/cpu2/online

 # grep processor /proc/cpuinfo
 processor       : 0
 processor       : 1

 # lscpu
 lscpu: error: cannot open
 /sys/devices/system/cpu/cpu2/cache/index0/shared_cpu_map: No such file or directory

This patch also add a new "On-line CPU(s):" line to the lscpu(1)
output.

Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=623012
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/lscpu.c