Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86/platform/atom: Switch to new Intel CPU model defines

New CPU #defines encode vendor and family as well as model.

Signed-off-by: Tony Luck <tony.luck@intel.com>
Link: https://lore.kernel.org/r/20240531203706.233365-4-tony.luck@intel.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>

authored by

Tony Luck and committed by
Ilpo Järvinen
5b3eaf10 0ff9c76f

+5 -6
+5 -6
arch/x86/platform/atom/punit_atom_debug.c
··· 165 165 static void punit_s2idle_check_unregister(void) {} 166 166 #endif 167 167 168 - #define X86_MATCH(model, data) \ 169 - X86_MATCH_VENDOR_FAM_MODEL_FEATURE(INTEL, 6, INTEL_FAM6_##model, \ 170 - X86_FEATURE_MWAIT, data) 168 + #define X86_MATCH(vfm, data) \ 169 + X86_MATCH_VFM_FEATURE(vfm, X86_FEATURE_MWAIT, data) 171 170 172 171 static const struct x86_cpu_id intel_punit_cpu_ids[] = { 173 - X86_MATCH(ATOM_SILVERMONT, &punit_device_byt), 174 - X86_MATCH(ATOM_SILVERMONT_MID, &punit_device_tng), 175 - X86_MATCH(ATOM_AIRMONT, &punit_device_cht), 172 + X86_MATCH(INTEL_ATOM_SILVERMONT, &punit_device_byt), 173 + X86_MATCH(INTEL_ATOM_SILVERMONT_MID, &punit_device_tng), 174 + X86_MATCH(INTEL_ATOM_AIRMONT, &punit_device_cht), 176 175 {} 177 176 }; 178 177 MODULE_DEVICE_TABLE(x86cpu, intel_punit_cpu_ids);