]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lscpu: improve bogomips use
authorKarel Zak <kzak@redhat.com>
Tue, 3 Nov 2020 10:13:26 +0000 (11:13 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 13 Nov 2020 08:19:02 +0000 (09:19 +0100)
commitcc94324ebd5edf197342144a42fbf5308b250fbc
tree954307cb982c75df68593c1d5f6c8bfb109b30d5
parent6321d34f0f929d640a8fff26a911c7db077dfe24
lscpu: improve bogomips use

* keep global (cputype) bogomips
* add per-CPU bogomips
* use bogomips from the first CPU as global (for cputype) if /proc/cpuinfo does not provide global bogomips
* add BOGOMIPS column for to -e/-p output

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