Skip to content

Commit 14ebe69

Browse files
committed
Merge tag 'pm-6.14-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
Pull power management fix from Rafael Wysocki: "Fix the handling of processors that stop the TSC in deeper C-states in the intel_idle driver (Thomas Gleixner)" * tag 'pm-6.14-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: intel_idle: Handle older CPUs, which stop the TSC in deeper C states, correctly
2 parents 7a56688 + c157d35 commit 14ebe69

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/idle/intel_idle.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
#include <asm/intel-family.h>
5757
#include <asm/mwait.h>
5858
#include <asm/spec-ctrl.h>
59+
#include <asm/tsc.h>
5960
#include <asm/fpu/api.h>
6061

6162
#define INTEL_IDLE_VERSION "0.5.1"
@@ -1799,6 +1800,9 @@ static void __init intel_idle_init_cstates_acpi(struct cpuidle_driver *drv)
17991800
if (intel_idle_state_needs_timer_stop(state))
18001801
state->flags |= CPUIDLE_FLAG_TIMER_STOP;
18011802

1803+
if (cx->type > ACPI_STATE_C1 && !boot_cpu_has(X86_FEATURE_NONSTOP_TSC))
1804+
mark_tsc_unstable("TSC halts in idle");
1805+
18021806
state->enter = intel_idle;
18031807
state->enter_s2idle = intel_idle_s2idle;
18041808
}

0 commit comments

Comments
 (0)