Skip to content

Commit ff4dff0

Browse files
andyhhpgregkh
authored andcommitted
x86/cpu/intel: Drop stray FAM6 check with new Intel CPU model defines
commit 34b3fc5 upstream. The outer if () should have been dropped when switching to c->x86_vfm. Fixes: 6568fc1 ("x86/cpu/intel: Switch to new Intel CPU model defines") Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Acked-by: Tony Luck <tony.luck@intel.com> Link: https://lore.kernel.org/r/20240529183605.17520-1-andrew.cooper3@citrix.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 0098f6a commit ff4dff0

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

arch/x86/kernel/cpu/intel.c

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -341,17 +341,13 @@ static void early_init_intel(struct cpuinfo_x86 *c)
341341
}
342342

343343
/* Penwell and Cloverview have the TSC which doesn't sleep on S3 */
344-
if (c->x86 == 6) {
345-
switch (c->x86_vfm) {
346-
case INTEL_ATOM_SALTWELL_MID:
347-
case INTEL_ATOM_SALTWELL_TABLET:
348-
case INTEL_ATOM_SILVERMONT_MID:
349-
case INTEL_ATOM_AIRMONT_NP:
350-
set_cpu_cap(c, X86_FEATURE_NONSTOP_TSC_S3);
351-
break;
352-
default:
353-
break;
354-
}
344+
switch (c->x86_vfm) {
345+
case INTEL_ATOM_SALTWELL_MID:
346+
case INTEL_ATOM_SALTWELL_TABLET:
347+
case INTEL_ATOM_SILVERMONT_MID:
348+
case INTEL_ATOM_AIRMONT_NP:
349+
set_cpu_cap(c, X86_FEATURE_NONSTOP_TSC_S3);
350+
break;
355351
}
356352

357353
/*

0 commit comments

Comments
 (0)