diff options
-rw-r--r-- | drivers/acpi/sleep.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/acpi/sleep.c b/drivers/acpi/sleep.c index 403c4ff15349..e52f1238d2d6 100644 --- a/drivers/acpi/sleep.c +++ b/drivers/acpi/sleep.c | |||
@@ -977,6 +977,8 @@ static int acpi_s2idle_prepare(void) | |||
977 | if (acpi_sci_irq_valid()) | 977 | if (acpi_sci_irq_valid()) |
978 | enable_irq_wake(acpi_sci_irq); | 978 | enable_irq_wake(acpi_sci_irq); |
979 | 979 | ||
980 | acpi_enable_wakeup_devices(ACPI_STATE_S0); | ||
981 | |||
980 | /* Change the configuration of GPEs to avoid spurious wakeup. */ | 982 | /* Change the configuration of GPEs to avoid spurious wakeup. */ |
981 | acpi_enable_all_wakeup_gpes(); | 983 | acpi_enable_all_wakeup_gpes(); |
982 | acpi_os_wait_events_complete(); | 984 | acpi_os_wait_events_complete(); |
@@ -1027,6 +1029,8 @@ static void acpi_s2idle_restore(void) | |||
1027 | { | 1029 | { |
1028 | acpi_enable_all_runtime_gpes(); | 1030 | acpi_enable_all_runtime_gpes(); |
1029 | 1031 | ||
1032 | acpi_disable_wakeup_devices(ACPI_STATE_S0); | ||
1033 | |||
1030 | if (acpi_sci_irq_valid()) | 1034 | if (acpi_sci_irq_valid()) |
1031 | disable_irq_wake(acpi_sci_irq); | 1035 | disable_irq_wake(acpi_sci_irq); |
1032 | 1036 | ||