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 <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
This commit is contained in:
Tony Luck 2024-05-20 15:46:05 -07:00 committed by Dave Hansen
parent 744866f5c0
commit 6fd5e8855e

View File

@ -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;
/*