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:
parent
801b8df8f4
commit
2c49a22c08
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue