diff options
| author | Karel Zak <kzak@redhat.com> | 2020-07-16 14:58:37 +0200 |
|---|---|---|
| committer | Karel Zak <kzak@redhat.com> | 2020-11-13 09:19:02 +0100 |
| commit | 6baa4df7ec2ddb8c07402b55202500f98432128f (patch) | |
| tree | 31a9aac6d4ef3bd56b32b200bd5b8abd06abd650 /sys-utils/lscpu-api.h | |
| parent | fd5999d9ac50ff56264fc0d593ead5a214032f53 (diff) | |
| download | util-linux-6baa4df7ec2ddb8c07402b55202500f98432128f.tar.gz | |
lscpu: improve topology calculation, use /proc/sysinfo
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/lscpu-api.h')
| -rw-r--r-- | sys-utils/lscpu-api.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys-utils/lscpu-api.h b/sys-utils/lscpu-api.h index 614512f420..57b0a2396a 100644 --- a/sys-utils/lscpu-api.h +++ b/sys-utils/lscpu-api.h @@ -56,8 +56,14 @@ struct lscpu_cputype { int physcoresperchip; /* Physical cores per chip */ int ncpus; /* how many CPUs references this type */ - int nthreads; /* calculated (probably same as ncpus) */ + int nthreads_per_core; + int ncores_per_socket; + int nsockets_per_book; + int nbooks_per_drawer; + int ndrawers_per_system; + + /* siblings maps */ int ncores; cpu_set_t **coremaps; int nsockets; |
