Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit f071d02

Browse files
aegljarkkojs
authored andcommitted
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>
1 parent 0ea00e2 commit f071d02

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/char/tpm/tpm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#include <linux/tpm_eventlog.h>
2929

3030
#ifdef CONFIG_X86
31-
#include <asm/intel-family.h>
31+
#include <asm/cpu_device_id.h>
3232
#endif
3333

3434
#define TPM_MINOR 224 /* officially assigned */

drivers/char/tpm/tpm_tis_core.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ static inline int tpm_tis_verify_crc(struct tpm_tis_data *data, size_t len,
210210
static inline bool is_bsw(void)
211211
{
212212
#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;
214214
#else
215215
return false;
216216
#endif

0 commit comments

Comments
 (0)