]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lscpu: remove the old code
authorHuang Shijie <shijie@os.amperecomputing.com>
Thu, 17 Jun 2021 12:41:16 +0000 (12:41 +0000)
committerKarel Zak <kzak@redhat.com>
Wed, 30 Jun 2021 09:27:26 +0000 (11:27 +0200)
commit81d6de9166be0377458b91c2f636baf9315c56c6
tree266ec4e4bb01c9978d0a0803b179ff9c4c58aee7
parent5efc31f9d8c7c95a2895e8d10052be11a66ec569
lscpu: remove the old code

The file "/sys/firmware/dmi/tables/DMI" always exists.

The dmi_decode_cputype() can provide more information then arm_smbios_decode().
So remove it to tidy the code.

Before this patch, we can get the output from Centos 7.9 who has
"/sys/firmware/dmi/entries/4-0/raw" and "/sys/firmware/dmi/tables/DMI":
  ----------------------------------------------------
  BIOS Vendor ID:                  Ampere(TM)
  Model name:                     Neoverse-N1
    BIOS Model name:               Ampere(TM) Altra(TM) Processor
  ----------------------------------------------------

 After this patch which uses "/sys/firmware/dmi/tables/DMI", in Centos 7.9, we get:
  ----------------------------------------------------
  BIOS Vendor ID:                  Ampere(TM)
  Model name:                     Neoverse-N1
    BIOS Model name:               Ampere(TM) Altra(TM) Processor Q00-00 CPU @ 2.8GHz
    BIOS CPU family:               257
  ----------------------------------------------------

Signed-off-by: Huang Shijie <shijie@os.amperecomputing.com>
sys-utils/lscpu-arm.c
sys-utils/lscpu.h