From 2c49a22c0851dda040f121847095543e4e440bac Mon Sep 17 00:00:00 2001 From: Felix Held Date: Sat, 23 Sep 2023 03:40:20 +0200 Subject: 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 Change-Id: Ib8e20726ea17e8ed94d5ff8f6568758fcfa162ae Reviewed-on: https://review.coreboot.org/c/coreboot/+/78106 Tested-by: build bot (Jenkins) Reviewed-by: Matt DeVillier --- src/arch/x86/smbios.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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)) -- cgit v1.2.3