]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lscpu: support non sequentially numbering of CPUs
authorAlexander Troosh <trush@yandex.ru>
Tue, 5 Nov 2013 09:16:38 +0000 (10:16 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 5 Nov 2013 11:46:03 +0000 (12:46 +0100)
commit4f64286321162f6919abc2cf3a0cc0472e68398c
tree1adfd0ddaffff866c01afcb36a8d7b8255b6b212
parent569d1dac7bc64457aac11163b6a91ce9b41a6715
lscpu: support non sequentially numbering of CPUs

lscpu don't work correctly on my system with:

 $ cat /sys/devices/system/cpu/possible
 0-1,4-5,8-9,12-13

[kzak@redhat.com: - coding style,
                  - add commit message
                  - add real_cpu_num() macro,
                  - fix functions where we need idx as well as CPU number]

Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/lscpu.1
sys-utils/lscpu.c