diff options
author | Felix Held <felix-coreboot@felixheld.de> | 2023-09-23 03:40:20 +0200 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2023-09-26 14:11:06 +0000 |
commit | 2c49a22c0851dda040f121847095543e4e440bac (patch) | |
tree | bd919bd0c5394101b67ec190b10c26f6c7c655b5 /src | |
parent | 801b8df8f42f0688b429bb28c8d8110ed0609506 (diff) |
arch/x86/smbios: use cpu_cpuid_extended_level
Use cpu_cpuid_extended_level instead of open-coding the same
functionality in smbios_write_type4.
Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: Ib8e20726ea17e8ed94d5ff8f6568758fcfa162ae
Reviewed-on: https://review.coreboot.org/c/coreboot/+/78106
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Matt DeVillier <matt.devillier@amd.corp-partner.google.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/arch/x86/smbios.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/x86/smbios.c b/src/arch/x86/smbios.c index b63c940ea8..6f0d35e1a3 100644 --- a/src/arch/x86/smbios.c +++ b/src/arch/x86/smbios.c @@ -182,7 +182,7 @@ int smbios_write_type4(unsigned long *current, int handle) if ((res.edx) & BIT(28)) characteristics |= BIT(4); /* BIT4: Hardware Thread */ - if (((cpuid_eax(0x80000000) - 0x80000000) + 1) > 2) { + if (((cpu_cpuid_extended_level() - 0x80000000) + 1) > 2) { res = cpuid(0x80000001); if ((res.edx) & BIT(20)) |