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>
This commit is contained in:
parent
1eea841b29
commit
3581a68a98
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue