Skip to content

Commit a0bf284

Browse files
committed
ACPI: Idle C-states disabled by max_cstate should not disable the TSC
Processor idle power states C2 and C3 stop the TSC on many machines. Linux recognizes this situation and marks the TSC as unstable: Marking TSC unstable due to TSC halts in idle But if those same machines are booted with "processor.max_cstate=1", then there is no need to validate C2 and C3, and no need to disable the TSC, which can be reliably used as a clocksource. Signed-off-by: Len Brown <len.brown@intel.com> Acked-by: Thomas Gleixner <tglx@linutronix.de>
1 parent 520daf7 commit a0bf284

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/acpi/processor_idle.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ static int acpi_processor_power_verify(struct acpi_processor *pr)
582582

583583
pr->power.timer_broadcast_on_state = INT_MAX;
584584

585-
for (i = 1; i < ACPI_PROCESSOR_MAX_POWER; i++) {
585+
for (i = 1; i < ACPI_PROCESSOR_MAX_POWER && i <= max_cstate; i++) {
586586
struct acpi_processor_cx *cx = &pr->power.states[i];
587587

588588
switch (cx->type) {

0 commit comments

Comments
 (0)