]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lscpu: keep static/dynamic MHz in cputype struct
authorKarel Zak <kzak@redhat.com>
Fri, 4 Sep 2020 09:27:33 +0000 (11:27 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 13 Nov 2020 08:19:02 +0000 (09:19 +0100)
commit778254d9a22a7303820baaa3b10cd144fd907a6f
tree81fcef82897d22009c48c62cd8bb426335241132
parent93a1bb1009fda38b7ea998d80275d22ff595dfd0
lscpu: keep static/dynamic MHz in cputype struct

The Dynamic and Static MHz are /proc/cpuinfo s390 per-CPU fields, but
we display it as a single value according the first parsed CPU. For
this purpose we store the values from the first CPU in lscpu_cputype.

For -p and -e outputs we will print per CPU values.

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