]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lscpu: use cache ID, keep caches independent on CPU type
authorKarel Zak <kzak@redhat.com>
Thu, 20 Aug 2020 10:28:52 +0000 (12:28 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 13 Nov 2020 08:19:02 +0000 (09:19 +0100)
commit6fbb53286d8d29d38185d65e5bc429c092142a48
tree150212e4b9e652393ed1ccb793626a7f0738ecbd
parent4b9cbc38a4e0b393ea73b7756bd2d4043edd5638
lscpu: use cache ID, keep caches independent on CPU type

The cache is identified by Type, Level and ID, the ID is unique cache
instance identifier (of the type).

This changes forces lscpu allocate more lscpu_cache instances (than
old version), but now we're ready for arbitrary scenario where
different CPU types share caches and the same cache type uses
different size in different instances, etc.

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