Skip to content

Commit 2cf615a

Browse files
aeglhansendc
authored andcommitted
x86/platform/intel-mid: Switch to new Intel CPU model defines
New CPU #defines encode vendor and family as well as model. N.B. Drop Haswell. CPU model 0x3C was included by mistake in upstream code. Signed-off-by: Tony Luck <[email protected]> Signed-off-by: Dave Hansen <[email protected]> Acked-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/all/20240521161002.12866-1-tony.luck%40intel.com
1 parent 079544e commit 2cf615a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

arch/x86/platform/intel-mid/intel-mid.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include <asm/mpspec_def.h>
2323
#include <asm/hw_irq.h>
2424
#include <asm/apic.h>
25+
#include <asm/cpu_device_id.h>
2526
#include <asm/io_apic.h>
2627
#include <asm/intel-mid.h>
2728
#include <asm/io.h>
@@ -55,9 +56,8 @@ static void __init intel_mid_time_init(void)
5556

5657
static void intel_mid_arch_setup(void)
5758
{
58-
switch (boot_cpu_data.x86_model) {
59-
case 0x3C:
60-
case 0x4A:
59+
switch (boot_cpu_data.x86_vfm) {
60+
case INTEL_ATOM_SILVERMONT_MID:
6161
x86_platform.legacy.rtc = 1;
6262
break;
6363
default:

0 commit comments

Comments
 (0)