Skip to content

Commit f12d31c

Browse files
committed
Merge tag 'acpi-5.18-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
Pull ACPI fixes from Rafael WysockiL "These fix up the ACPI processor driver after a change made during the 5.16 cycle that inadvertently broke falling back to shallower C-states when C3 cannot be used. Specifics: - Make the ACPI processor driver avoid falling back to C3 type of C-states when C3 cannot be requested (Ville Syrjälä) - Revert a quirk that is not necessary any more after fixing the underlying issue properly (Ville Syrjälä)" * tag 'acpi-5.18-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: Revert "ACPI: processor: idle: fix lockup regression on 32-bit ThinkPad T40" ACPI: processor: idle: Avoid falling back to C3 type C-states
2 parents 259b897 + 20e582e commit f12d31c

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

drivers/acpi/processor_idle.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,6 @@ static const struct dmi_system_id processor_power_dmi_table[] = {
9696
DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK Computer Inc."),
9797
DMI_MATCH(DMI_PRODUCT_NAME,"L8400B series Notebook PC")},
9898
(void *)1},
99-
/* T40 can not handle C3 idle state */
100-
{ set_max_cstate, "IBM ThinkPad T40", {
101-
DMI_MATCH(DMI_SYS_VENDOR, "IBM"),
102-
DMI_MATCH(DMI_PRODUCT_NAME, "23737CU")},
103-
(void *)2},
10499
{},
105100
};
106101

@@ -795,7 +790,8 @@ static int acpi_processor_setup_cstates(struct acpi_processor *pr)
795790
if (cx->type == ACPI_STATE_C1 || cx->type == ACPI_STATE_C2 ||
796791
cx->type == ACPI_STATE_C3) {
797792
state->enter_dead = acpi_idle_play_dead;
798-
drv->safe_state_index = count;
793+
if (cx->type != ACPI_STATE_C3)
794+
drv->safe_state_index = count;
799795
}
800796
/*
801797
* Halt-induced C1 is not good for ->enter_s2idle, because it

0 commit comments

Comments
 (0)