]> Git Repo - linux.git/commitdiff
x86/cpu: Switch to new Intel CPU model defines
authorTony Luck <[email protected]>
Wed, 24 Apr 2024 18:15:16 +0000 (11:15 -0700)
committerBorislav Petkov (AMD) <[email protected]>
Mon, 29 Apr 2024 08:31:30 +0000 (10:31 +0200)
New CPU #defines encode vendor and family as well as model.

[ dhansen: vertically align macro and remove stray subject / ]

Signed-off-by: Tony Luck <[email protected]>
Signed-off-by: Dave Hansen <[email protected]>
Signed-off-by: Borislav Petkov (AMD) <[email protected]>
Link: https://lore.kernel.org/all/20240424181516.41887-1-tony.luck%40intel.com
arch/x86/kernel/smpboot.c

index a58109583c476515a96156077b7181a3a20153d9..0c35207320cb4f6ded65d8ef64dbb24c63c1c84b 100644 (file)
@@ -438,9 +438,9 @@ static bool match_pkg(struct cpuinfo_x86 *c, struct cpuinfo_x86 *o)
  */
 
 static const struct x86_cpu_id intel_cod_cpu[] = {
-       X86_MATCH_INTEL_FAM6_MODEL(HASWELL_X, 0),       /* COD */
-       X86_MATCH_INTEL_FAM6_MODEL(BROADWELL_X, 0),     /* COD */
-       X86_MATCH_INTEL_FAM6_MODEL(ANY, 1),             /* SNC */
+       X86_MATCH_VFM(INTEL_HASWELL_X,   0),    /* COD */
+       X86_MATCH_VFM(INTEL_BROADWELL_X, 0),    /* COD */
+       X86_MATCH_VFM(INTEL_ANY,         1),    /* SNC */
        {}
 };
 
This page took 0.076101 seconds and 4 git commands to generate.