]> git.ipfire.org Git - thirdparty/util-linux.git/commit - sys-utils/lscpu.c
lscpu: improve topology calculation
authorKarel Zak <kzak@redhat.com>
Tue, 3 Nov 2020 08:46:45 +0000 (09:46 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 13 Nov 2020 08:19:02 +0000 (09:19 +0100)
commit19ddc05e110b547c2406e58045e6fc0b8fe626c7
tree63fa77ee386dc97e470ca907cc86504ac2769973
parent6648a70eb2af821c768594be68c75ec01562af40
lscpu: improve topology calculation

Let's make it more robust and readable. The sysinfo file on s390 may
contain zeros, so we need to check the values and fallback to data
from shared maps if necessary.

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