Skip to content

Commit

Permalink
x86/boot: Switch to new Intel CPU model defines
Browse files Browse the repository at this point in the history
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 <tony.luck@intel.com>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Link: https://lore.kernel.org/all/20240520224620.9480-35-tony.luck%40intel.com
  • Loading branch information
Tony Luck authored and Dave Hansen committed May 28, 2024
1 parent 744866f commit 6fd5e88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/boot/cpucheck.c
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ int check_knl_erratum(void)
*/
if (!is_intel() ||
cpu.family != 6 ||
cpu.model != INTEL_FAM6_XEON_PHI_KNL)
cpu.model != 0x57 /*INTEL_XEON_PHI_KNL*/)
return 0;

/*
Expand Down

0 comments on commit 6fd5e88

Please sign in to comment.