Skip to content

Commit a31a0a3

Browse files
aeglrafaeljw
authored andcommitted
thermal: intel: intel_soc_dts_thermal: Switch to new Intel CPU model defines
New CPU #defines encode vendor and family as well as model. Signed-off-by: Tony Luck <[email protected]> Acked-by: Rafael J. Wysocki <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 0f46ecc commit a31a0a3

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

drivers/thermal/intel/intel_soc_dts_thermal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ static irqreturn_t soc_irq_thread_fn(int irq, void *dev_data)
3636
}
3737

3838
static const struct x86_cpu_id soc_thermal_ids[] = {
39-
X86_MATCH_INTEL_FAM6_MODEL(ATOM_SILVERMONT, BYT_SOC_DTS_APIC_IRQ),
39+
X86_MATCH_VFM(INTEL_ATOM_SILVERMONT, BYT_SOC_DTS_APIC_IRQ),
4040
{}
4141
};
4242
MODULE_DEVICE_TABLE(x86cpu, soc_thermal_ids);

include/linux/platform_data/x86/soc.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
static inline bool soc_intel_is_##soc(void) \
2121
{ \
2222
static const struct x86_cpu_id soc##_cpu_ids[] = { \
23-
X86_MATCH_INTEL_FAM6_MODEL(type, NULL), \
23+
X86_MATCH_VFM(type, NULL), \
2424
{} \
2525
}; \
2626
const struct x86_cpu_id *id; \
@@ -31,11 +31,11 @@ static inline bool soc_intel_is_##soc(void) \
3131
return false; \
3232
}
3333

34-
SOC_INTEL_IS_CPU(byt, ATOM_SILVERMONT);
35-
SOC_INTEL_IS_CPU(cht, ATOM_AIRMONT);
36-
SOC_INTEL_IS_CPU(apl, ATOM_GOLDMONT);
37-
SOC_INTEL_IS_CPU(glk, ATOM_GOLDMONT_PLUS);
38-
SOC_INTEL_IS_CPU(cml, KABYLAKE_L);
34+
SOC_INTEL_IS_CPU(byt, INTEL_ATOM_SILVERMONT);
35+
SOC_INTEL_IS_CPU(cht, INTEL_ATOM_AIRMONT);
36+
SOC_INTEL_IS_CPU(apl, INTEL_ATOM_GOLDMONT);
37+
SOC_INTEL_IS_CPU(glk, INTEL_ATOM_GOLDMONT_PLUS);
38+
SOC_INTEL_IS_CPU(cml, INTEL_KABYLAKE_L);
3939

4040
#undef SOC_INTEL_IS_CPU
4141

0 commit comments

Comments
 (0)