diff options
author | Tony Luck <tony.luck@intel.com> | 2024-05-29 20:19:20 +0300 |
---|---|---|
committer | Iwona Winiarska <iwona.winiarska@intel.com> | 2024-06-17 16:15:46 +0300 |
commit | a43b9ec091b1b1924ea18883a715e5aadba2543e (patch) | |
tree | bdecdd1ed7982fe55a7adde0ecbf767a839007cb /drivers/hwmon | |
parent | 6ba59ff4227927d3a8530fc2973b80e94b54d58f (diff) | |
download | linux-a43b9ec091b1b1924ea18883a715e5aadba2543e.tar.xz |
peci, hwmon: Switch to new Intel CPU model defines
Update peci subsystem to use the same vendor-family-model
combined definition that core x86 code uses.
Signed-off-by: Tony Luck <tony.luck@intel.com>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Iwona Winiarska <iwona.winiarska@intel.com>
Link: https://lore.kernel.org/r/20240529171920.62571-1-tony.luck@intel.com
Signed-off-by: Iwona Winiarska <iwona.winiarska@intel.com>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r-- | drivers/hwmon/peci/cputemp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/hwmon/peci/cputemp.c b/drivers/hwmon/peci/cputemp.c index a812c15948d9..5a682195b98f 100644 --- a/drivers/hwmon/peci/cputemp.c +++ b/drivers/hwmon/peci/cputemp.c @@ -360,10 +360,10 @@ static int init_core_mask(struct peci_cputemp *priv) int ret; /* Get the RESOLVED_CORES register value */ - switch (peci_dev->info.model) { - case INTEL_FAM6_ICELAKE_X: - case INTEL_FAM6_ICELAKE_D: - case INTEL_FAM6_SAPPHIRERAPIDS_X: + switch (peci_dev->info.x86_vfm) { + case INTEL_ICELAKE_X: + case INTEL_ICELAKE_D: + case INTEL_SAPPHIRERAPIDS_X: ret = peci_ep_pci_local_read(peci_dev, 0, reg->bus, reg->dev, reg->func, reg->offset + 4, &data); if (ret) |