diff options
| author | Masayoshi Mizuma <m.mizuma@jp.fujitsu.com> | 2020-11-20 00:06:08 -0500 |
|---|---|---|
| committer | Karel Zak <kzak@redhat.com> | 2020-11-20 09:17:12 +0100 |
| commit | 788f90d69a43198e648442399967542e98e44d11 (patch) | |
| tree | e3e785526baba3d325bcd66111b6321c8f05dd32 /sys-utils/switch_root.c | |
| parent | 3cd676f5ec9800e4eabafc578f31c292992d6396 (diff) | |
| download | util-linux-788f90d69a43198e648442399967542e98e44d11.tar.gz | |
lscpu: add helper to get physical sockets
Add a helper function, get_number_of_physical_sockets_from_dmi(),
to get physical sockets from DMI table in case of the sysfs for
cpu topology doesn't have the physical socket information.
get_number_of_physical_sockets_from_dmi() parse the DMI table
and counts the number of SMBIOS Processor Information (Type04)
structure.
Signed-off-by: Masayoshi Mizuma <m.mizuma@jp.fujitsu.com>
Diffstat (limited to 'sys-utils/switch_root.c')
0 files changed, 0 insertions, 0 deletions
