Skip to content

Commit 7edcbbf

Browse files
committed
ACPI: PM: Loop in full LPS0 mode only
After a previous change, all non-wakeup GPEs are disabled for suspend-to-idle unless full Low-Power S0 (LPS0) mode is in use, so it is not necessary to do anything in acpi_s2idle_wake() unless in full LPS0 mode, which is only when lps0_device_handle is set. Modify the code accordingly. Tested-by: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent f941d3e commit 7edcbbf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/acpi/sleep.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -985,6 +985,8 @@ static int acpi_s2idle_prepare(void)
985985

986986
static void acpi_s2idle_wake(void)
987987
{
988+
if (!lps0_device_handle)
989+
return;
988990

989991
if (pm_debug_messages_on)
990992
lpi_check_constraints();
@@ -1003,8 +1005,7 @@ static void acpi_s2idle_wake(void)
10031005
* takes too much time for EC wakeup events to survive, so look
10041006
* for them now.
10051007
*/
1006-
if (lps0_device_handle)
1007-
acpi_ec_dispatch_gpe();
1008+
acpi_ec_dispatch_gpe();
10081009
}
10091010
}
10101011

0 commit comments

Comments
 (0)