Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 82386
b: refs/heads/master
c: a3627f6
h: refs/heads/master
v: v3
  • Loading branch information
Shaohua Li authored and Len Brown committed Feb 1, 2008
1 parent 64c54ea commit d4b5881
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f4cb57007662a4ec3c2de3c027900223e0299bdd
refs/heads/master: a3627f67b1d5ddd8f65eedc2a76da90fbe062530
7 changes: 7 additions & 0 deletions trunk/drivers/acpi/sleep/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,13 @@ static int acpi_pm_enter(suspend_state_t pm_state)
if (ACPI_SUCCESS(status) && (acpi_state == ACPI_STATE_S3))
acpi_clear_event(ACPI_EVENT_POWER_BUTTON);

/*
* Disable and clear GPE status before interrupt is enabled. Some GPEs
* (like wakeup GPE) haven't handler, this can avoid such GPE misfire.
* acpi_leave_sleep_state will reenable specific GPEs later
*/
acpi_hw_disable_all_gpes();

local_irq_restore(flags);
printk(KERN_DEBUG "Back to C!\n");

Expand Down

0 comments on commit d4b5881

Please sign in to comment.