summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/processor_idle.c
diff options
context:
space:
mode:
authorRichard Gong <richard.gong@amd.com>2021-09-22 15:31:16 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2021-09-24 18:26:27 +0200
commitd6b88ce2eb9d2698eb24451eb92c0a1649b17bb1 (patch)
tree3deb3a67e2ea94aca3bc09a50563c6693530a34e /drivers/acpi/processor_idle.c
parentLinux 5.15-rc2 (diff)
downloadlinux-d6b88ce2eb9d2698eb24451eb92c0a1649b17bb1.tar.xz
linux-d6b88ce2eb9d2698eb24451eb92c0a1649b17bb1.zip
ACPI: processor idle: Allow playing dead in C3 state
When some cores are disabled on AMD platforms, the system will no longer be able to enter suspend-to-idle s0ix. Update to allow playing dead in C3 state so that the CPUs can enter the deepest state on AMD platforms. BugLink: https://gitlab.freedesktop.org/drm/amd/-/issues/1708 Suggested-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Richard Gong <richard.gong@amd.com> [ rjw: Fixed coding style ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/processor_idle.c')
-rw-r--r--drivers/acpi/processor_idle.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c
index f37fba9e5ba0..76ef1bcc8848 100644
--- a/drivers/acpi/processor_idle.c
+++ b/drivers/acpi/processor_idle.c
@@ -789,7 +789,8 @@ static int acpi_processor_setup_cstates(struct acpi_processor *pr)
state->enter = acpi_idle_enter;
state->flags = 0;
- if (cx->type == ACPI_STATE_C1 || cx->type == ACPI_STATE_C2) {
+ if (cx->type == ACPI_STATE_C1 || cx->type == ACPI_STATE_C2 ||
+ cx->type == ACPI_STATE_C3) {
state->enter_dead = acpi_idle_play_dead;
drv->safe_state_index = count;
}