arch/x86/smbios: use cpu_cpuid_extended_level instead of open coding it
Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: Ice15f0ce591104a2ace186f9049748219c2bc097 Reviewed-on: https://review.coreboot.org/c/coreboot/+/73141 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
This commit is contained in:
parent
4c7b965c6c
commit
73e9ac66ad
1 changed files with 2 additions and 2 deletions
|
@ -120,8 +120,8 @@ static int smbios_processor_name(u8 *start)
|
||||||
const char *str = "Unknown Processor Name";
|
const char *str = "Unknown Processor Name";
|
||||||
if (cpu_have_cpuid()) {
|
if (cpu_have_cpuid()) {
|
||||||
int i;
|
int i;
|
||||||
struct cpuid_result res = cpuid(0x80000000);
|
struct cpuid_result res;
|
||||||
if (res.eax >= 0x80000004) {
|
if (cpu_cpuid_extended_level() >= 0x80000004) {
|
||||||
int j = 0;
|
int j = 0;
|
||||||
for (i = 0; i < 3; i++) {
|
for (i = 0; i < 3; i++) {
|
||||||
res = cpuid(0x80000002 + i);
|
res = cpuid(0x80000002 + i);
|
||||||
|
|
Loading…
Reference in a new issue