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

tpm: Switch to new Intel CPU model defines

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

Link: https://lore.kernel.org/all/20240520224620.9480-4-tony.luck@intel.com/
Signed-off-by: Tony Luck <tony.luck@intel.com>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>

authored by

Tony Luck and committed by
Jarkko Sakkinen
f071d02e 0ea00e24

+2 -2
+1 -1
drivers/char/tpm/tpm.h
··· 28 28 #include <linux/tpm_eventlog.h> 29 29 30 30 #ifdef CONFIG_X86 31 - #include <asm/intel-family.h> 31 + #include <asm/cpu_device_id.h> 32 32 #endif 33 33 34 34 #define TPM_MINOR 224 /* officially assigned */
+1 -1
drivers/char/tpm/tpm_tis_core.h
··· 210 210 static inline bool is_bsw(void) 211 211 { 212 212 #ifdef CONFIG_X86 213 - return ((boot_cpu_data.x86_model == INTEL_FAM6_ATOM_AIRMONT) ? 1 : 0); 213 + return (boot_cpu_data.x86_vfm == INTEL_ATOM_AIRMONT) ? 1 : 0; 214 214 #else 215 215 return false; 216 216 #endif