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>
This commit is contained in:
Felix Held 2023-09-23 03:40:20 +02:00
parent 801b8df8f4
commit 2c49a22c08
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ int smbios_write_type4(unsigned long *current, int handle)
if ((res.edx) & BIT(28)) if ((res.edx) & BIT(28))
characteristics |= BIT(4); /* BIT4: Hardware Thread */ characteristics |= BIT(4); /* BIT4: Hardware Thread */
if (((cpuid_eax(0x80000000) - 0x80000000) + 1) > 2) { if (((cpu_cpuid_extended_level() - 0x80000000) + 1) > 2) {
res = cpuid(0x80000001); res = cpuid(0x80000001);
if ((res.edx) & BIT(20)) if ((res.edx) & BIT(20))