Skip to content

Commit 12929ac

Browse files
aeglij-intel
authored andcommitted
platform/x86: intel_ips: 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> Acked-by: Hans de Goede <hdegoede@redhat.com> Link: https://lore.kernel.org/r/20240531203706.233365-7-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>
1 parent 70a4fa3 commit 12929ac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/platform/x86/intel_ips.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
#include <drm/i915_drm.h>
6363
#include <asm/msr.h>
6464
#include <asm/processor.h>
65+
#include <asm/cpu_device_id.h>
6566
#include "intel_ips.h"
6667

6768
#include <linux/io-64-nonatomic-lo-hi.h>
@@ -1284,7 +1285,7 @@ static struct ips_mcp_limits *ips_detect_cpu(struct ips_driver *ips)
12841285
struct ips_mcp_limits *limits = NULL;
12851286
u16 tdp;
12861287

1287-
if (!(boot_cpu_data.x86 == 6 && boot_cpu_data.x86_model == 37)) {
1288+
if (!(boot_cpu_data.x86_vfm == INTEL_WESTMERE)) {
12881289
dev_info(ips->dev, "Non-IPS CPU detected.\n");
12891290
return NULL;
12901291
}

0 commit comments

Comments
 (0)