]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lscpu: read MHZ from /sys/.../cpufreq/scaling_cur_freq
authorKarel Zak <kzak@redhat.com>
Tue, 25 May 2021 11:23:39 +0000 (13:23 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 25 May 2021 11:30:13 +0000 (13:30 +0200)
commitf2d08d4ddc9bc601107df28dd8e4598cf2e0b420
tree0fcbdc52d5df2af69af9519428c32c21ac202da9
parent0b538002dad7bb5e178740191961bcc69509a80d
lscpu: read MHZ from /sys/.../cpufreq/scaling_cur_freq

This is more portable and provides more stable results than
/proc/cpuinfo.

Fixes: https://github.com/karelzak/util-linux/pull/1317
Co-Author: Thomas Weißschuh
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/lscpu-topology.c