Skip to content

Commit 680d9b2

Browse files
sohilmehIngo Molnar
authored andcommitted
x86/apic: Fix 32-bit APIC initialization for extended Intel Families
APIC detection is currently limited to a few specific Families and will not match the upcoming Families >=18. Extend the check to include all Families 6 or greater. Also convert it to a VFM check to make it simpler. Signed-off-by: Sohil Mehta <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Acked-by: Dave Hansen <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent a46f322 commit 680d9b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/x86/kernel/apic/apic.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2011,8 +2011,8 @@ static bool __init detect_init_APIC(void)
20112011
case X86_VENDOR_HYGON:
20122012
break;
20132013
case X86_VENDOR_INTEL:
2014-
if (boot_cpu_data.x86 == 6 || boot_cpu_data.x86 == 15 ||
2015-
(boot_cpu_data.x86 == 5 && boot_cpu_has(X86_FEATURE_APIC)))
2014+
if ((boot_cpu_data.x86 == 5 && boot_cpu_has(X86_FEATURE_APIC)) ||
2015+
boot_cpu_data.x86_vfm >= INTEL_PENTIUM_PRO)
20162016
break;
20172017
goto no_apic;
20182018
default:

0 commit comments

Comments
 (0)