• Bjorn Helgaas's avatar
    ACPICA: Clear GPEs and power button events during wakeup · ea47439b
    Bjorn Helgaas authored
    Per spec section 4.7.2.2.1.1, OSPM should clear power button status when
    waking the system.  This must be done before enabling interrupts to prevent
    spurious power button events.
    
    Linux currently clears these events in acpi_suspend_enter() just after
    calling acpi_leave_sleep_state_prep().  Other OSes should be doing
    something similar.  But it seems more robust to do this in the CA.
    
    The clear in acpi_leave_sleep_state() should be unnecessary.
    
    Thanks to Zhao Yakui for patiently educating me about this.
    
    This patch may be used under either the GPL v2 or the BSD-style license
    used for the Intel ACPICA.
    Signed-off-by: default avatarBjorn Helgaas <bjorn.helgaas@hp.com>
    CC: Zhao Yakui <yakui.zhao@intel.com>
    Signed-off-by: default avatarLen Brown <len.brown@intel.com>
    ea47439b
hwsleep.c 17.5 KB