]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lscpu: generate cache ID if not available
authorKarel Zak <kzak@redhat.com>
Mon, 2 Nov 2020 09:11:46 +0000 (10:11 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 13 Nov 2020 08:19:02 +0000 (09:19 +0100)
commitada1a387b110cc6744dcc5f32cbd9fca3304ed79
tree6dc47b1db451d7f0137c6ae3c8f8c9a2b9b44a01
parent0710bb133f6a6bd393d5aea3971dac070784cad2
lscpu: generate cache ID if not available

The file /sys/devices/system/cpu/cpu*/cache/index*/id is not available
in old kernels. This patch add code to generate IDs according to cache
type and level.

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