Fix re-enabling ACPI on wakeup from hibernation. The problem was that

acpi_Disable() cleared all GPE events.
Some old ACPI implementaions still need current re-enabling code.
This commit is contained in:
Mitsuru IWASAKI 2001-11-15 15:12:08 +00:00
parent dc62834a97
commit 964679ce58

View file

@ -1346,9 +1346,8 @@ acpi_SetSleepState(struct acpi_softc *sc, int state)
AcpiUtReleaseMutex(ACPI_MTX_HARDWARE);
/* Re-enable ACPI hardware on wakeup from sleep state 4. */
if (state >= ACPI_STATE_S4) {
acpi_Disable(sc);
acpi_Enable(sc);
if (state == ACPI_STATE_S4) {
AcpiEnable();
}
} else {
status = AcpiEnterSleepState((UINT8)state);