diff options
Diffstat (limited to 'drivers/acpi/sleep/main.c')
-rw-r--r-- | drivers/acpi/sleep/main.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/acpi/sleep/main.c b/drivers/acpi/sleep/main.c index cbfa058d89e3..96d23b3cfc4e 100644 --- a/drivers/acpi/sleep/main.c +++ b/drivers/acpi/sleep/main.c | |||
@@ -146,6 +146,13 @@ static int acpi_pm_enter(suspend_state_t pm_state) | |||
146 | if (ACPI_SUCCESS(status) && (acpi_state == ACPI_STATE_S3)) | 146 | if (ACPI_SUCCESS(status) && (acpi_state == ACPI_STATE_S3)) |
147 | acpi_clear_event(ACPI_EVENT_POWER_BUTTON); | 147 | acpi_clear_event(ACPI_EVENT_POWER_BUTTON); |
148 | 148 | ||
149 | /* | ||
150 | * Disable and clear GPE status before interrupt is enabled. Some GPEs | ||
151 | * (like wakeup GPE) haven't handler, this can avoid such GPE misfire. | ||
152 | * acpi_leave_sleep_state will reenable specific GPEs later | ||
153 | */ | ||
154 | acpi_hw_disable_all_gpes(); | ||
155 | |||
149 | local_irq_restore(flags); | 156 | local_irq_restore(flags); |
150 | printk(KERN_DEBUG "Back to C!\n"); | 157 | printk(KERN_DEBUG "Back to C!\n"); |
151 | 158 | ||