diff options
-rw-r--r-- | drivers/acpi/hardware/hwsleep.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/drivers/acpi/hardware/hwsleep.c b/drivers/acpi/hardware/hwsleep.c index 57901ca3ade9..8fa93125fd4c 100644 --- a/drivers/acpi/hardware/hwsleep.c +++ b/drivers/acpi/hardware/hwsleep.c | |||
@@ -235,6 +235,14 @@ acpi_status acpi_enter_sleep_state_prep(u8 sleep_state) | |||
235 | "While executing method _SST")); | 235 | "While executing method _SST")); |
236 | } | 236 | } |
237 | 237 | ||
238 | /* | ||
239 | * 1) Disable/Clear all GPEs | ||
240 | */ | ||
241 | status = acpi_hw_disable_all_gpes(); | ||
242 | if (ACPI_FAILURE(status)) { | ||
243 | return_ACPI_STATUS(status); | ||
244 | } | ||
245 | |||
238 | return_ACPI_STATUS(AE_OK); | 246 | return_ACPI_STATUS(AE_OK); |
239 | } | 247 | } |
240 | 248 | ||
@@ -290,13 +298,8 @@ acpi_status asmlinkage acpi_enter_sleep_state(u8 sleep_state) | |||
290 | } | 298 | } |
291 | 299 | ||
292 | /* | 300 | /* |
293 | * 1) Disable/Clear all GPEs | ||
294 | * 2) Enable all wakeup GPEs | 301 | * 2) Enable all wakeup GPEs |
295 | */ | 302 | */ |
296 | status = acpi_hw_disable_all_gpes(); | ||
297 | if (ACPI_FAILURE(status)) { | ||
298 | return_ACPI_STATUS(status); | ||
299 | } | ||
300 | acpi_gbl_system_awake_and_running = FALSE; | 303 | acpi_gbl_system_awake_and_running = FALSE; |
301 | 304 | ||
302 | status = acpi_hw_enable_all_wakeup_gpes(); | 305 | status = acpi_hw_enable_all_wakeup_gpes(); |