Skip to content

Commit f21b075

Browse files
aeglbp3tk0v
authored andcommitted
x86/tsc: 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> Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Link: https://lore.kernel.org/all/20240424181517.41907-1-tony.luck%40intel.com
1 parent 4db6427 commit f21b075

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

arch/x86/kernel/tsc.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#include <asm/x86_init.h>
2727
#include <asm/geode.h>
2828
#include <asm/apic.h>
29-
#include <asm/intel-family.h>
29+
#include <asm/cpu_device_id.h>
3030
#include <asm/i8259.h>
3131
#include <asm/uv/uv.h>
3232

@@ -682,7 +682,7 @@ unsigned long native_calibrate_tsc(void)
682682
* clock.
683683
*/
684684
if (crystal_khz == 0 &&
685-
boot_cpu_data.x86_model == INTEL_FAM6_ATOM_GOLDMONT_D)
685+
boot_cpu_data.x86_vfm == INTEL_ATOM_GOLDMONT_D)
686686
crystal_khz = 25000;
687687

688688
/*
@@ -713,7 +713,7 @@ unsigned long native_calibrate_tsc(void)
713713
* For Atom SoCs TSC is the only reliable clocksource.
714714
* Mark TSC reliable so no watchdog on it.
715715
*/
716-
if (boot_cpu_data.x86_model == INTEL_FAM6_ATOM_GOLDMONT)
716+
if (boot_cpu_data.x86_vfm == INTEL_ATOM_GOLDMONT)
717717
setup_force_cpu_cap(X86_FEATURE_TSC_RELIABLE);
718718

719719
#ifdef CONFIG_X86_LOCAL_APIC

0 commit comments

Comments
 (0)