Skip to content

Commit 6fd5e88

Browse files
aeglhansendc
authored andcommitted
x86/boot: Switch to new Intel CPU model defines
New CPU #defines encode vendor and family as well as model but boot code doesn't have all the infrastructure to use them. Hard code the one CPU model number used here. Signed-off-by: Tony Luck <[email protected]> Signed-off-by: Dave Hansen <[email protected]> Link: https://lore.kernel.org/all/20240520224620.9480-35-tony.luck%40intel.com
1 parent 744866f commit 6fd5e88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/boot/cpucheck.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ int check_knl_erratum(void)
203203
*/
204204
if (!is_intel() ||
205205
cpu.family != 6 ||
206-
cpu.model != INTEL_FAM6_XEON_PHI_KNL)
206+
cpu.model != 0x57 /*INTEL_XEON_PHI_KNL*/)
207207
return 0;
208208

209209
/*

0 commit comments

Comments
 (0)