summaryrefslogtreecommitdiff
path: root/src/arch/x86
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2023-09-23 03:44:55 +0200
committerFelix Held <felix-coreboot@felixheld.de>2023-09-26 14:11:52 +0000
commit3581a68a98ff61c2066b6ce6cb5e1321b950ef20 (patch)
tree04fbe5ec986961929377e45dc36ad2a1e17e8c9c /src/arch/x86
parent1eea841b29643b2a6b1d08ec81a6ae9a71ef3166 (diff)
arch/x86/cpu_common: use cpuid_get_max_func
Use cpuid_get_max_func instead of open-coding the same functionality in cpu_check_deterministic_cache_cpuid_supported. Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: I590f0c840bc62bbd0b5038c5827367d811e30d10 Reviewed-on: https://review.coreboot.org/c/coreboot/+/78108 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Matt DeVillier <matt.devillier@amd.corp-partner.google.com>
Diffstat (limited to 'src/arch/x86')
-rw-r--r--src/arch/x86/cpu_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/x86/cpu_common.c b/src/arch/x86/cpu_common.c
index 9727d64528..60ffd36c6e 100644
--- a/src/arch/x86/cpu_common.c
+++ b/src/arch/x86/cpu_common.c
@@ -90,7 +90,7 @@ uint32_t cpu_get_feature_flags_edx(void)
enum cpu_type cpu_check_deterministic_cache_cpuid_supported(void)
{
if (cpu_is_intel()) {
- if (cpuid_eax(0) < 4)
+ if (cpuid_get_max_func() < 4)
return CPUID_COMMAND_UNSUPPORTED;
return CPUID_TYPE_INTEL;
} else if (cpu_is_amd()) {