diff options
author | Len Brown <len.brown@intel.com> | 2007-02-16 22:11:57 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2007-02-16 22:11:57 -0500 |
commit | 902b236c087bf021c94cc21a2b09d928c4156c2b (patch) | |
tree | c62e6a6d8dedcff68e90e3cd153789f87cc67fb6 /drivers/acpi/hardware/hwsleep.c | |
parent | 08e4a10ec82faf5ba67c8d0115b7bc9e58071555 (diff) | |
parent | aafbcd165a2a02e6dff173f66772b3148229ace8 (diff) |
Pull bugzilla-7887 into release branch
Diffstat (limited to 'drivers/acpi/hardware/hwsleep.c')
-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 57901ca3ade..8fa93125fd4 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) "While executing method _SST")); } + /* + * 1) Disable/Clear all GPEs + */ + status = acpi_hw_disable_all_gpes(); + if (ACPI_FAILURE(status)) { + return_ACPI_STATUS(status); + } + return_ACPI_STATUS(AE_OK); } @@ -290,13 +298,8 @@ acpi_status asmlinkage acpi_enter_sleep_state(u8 sleep_state) } /* - * 1) Disable/Clear all GPEs * 2) Enable all wakeup GPEs */ - status = acpi_hw_disable_all_gpes(); - if (ACPI_FAILURE(status)) { - return_ACPI_STATUS(status); - } acpi_gbl_system_awake_and_running = FALSE; status = acpi_hw_enable_all_wakeup_gpes(); |