summaryrefslogtreecommitdiff
path: root/src/arch/x86/cpu_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/x86/cpu_common.c')
-rw-r--r--src/arch/x86/cpu_common.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/arch/x86/cpu_common.c b/src/arch/x86/cpu_common.c
index 102ccf0468..9727d64528 100644
--- a/src/arch/x86/cpu_common.c
+++ b/src/arch/x86/cpu_common.c
@@ -89,19 +89,15 @@ uint32_t cpu_get_feature_flags_edx(void)
enum cpu_type cpu_check_deterministic_cache_cpuid_supported(void)
{
- struct cpuid_result res;
-
if (cpu_is_intel()) {
- res = cpuid(0);
- if (res.eax < 4)
+ if (cpuid_eax(0) < 4)
return CPUID_COMMAND_UNSUPPORTED;
return CPUID_TYPE_INTEL;
} else if (cpu_is_amd()) {
if (cpu_cpuid_extended_level() < 0x80000001)
return CPUID_COMMAND_UNSUPPORTED;
- res = cpuid(0x80000001);
- if (!(res.ecx & (1 << 22)))
+ if (!(cpuid_ecx(0x80000001) & (1 << 22)))
return CPUID_COMMAND_UNSUPPORTED;
return CPUID_TYPE_AMD;