mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-06 08:46:46 +00:00
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>
This commit is contained in:
parent
f941d3e41d
commit
7edcbbf290
1 changed files with 3 additions and 2 deletions
|
@ -985,6 +985,8 @@ static int acpi_s2idle_prepare(void)
|
||||||
|
|
||||||
static void acpi_s2idle_wake(void)
|
static void acpi_s2idle_wake(void)
|
||||||
{
|
{
|
||||||
|
if (!lps0_device_handle)
|
||||||
|
return;
|
||||||
|
|
||||||
if (pm_debug_messages_on)
|
if (pm_debug_messages_on)
|
||||||
lpi_check_constraints();
|
lpi_check_constraints();
|
||||||
|
@ -1003,7 +1005,6 @@ static void acpi_s2idle_wake(void)
|
||||||
* takes too much time for EC wakeup events to survive, so look
|
* takes too much time for EC wakeup events to survive, so look
|
||||||
* for them now.
|
* for them now.
|
||||||
*/
|
*/
|
||||||
if (lps0_device_handle)
|
|
||||||
acpi_ec_dispatch_gpe();
|
acpi_ec_dispatch_gpe();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue