1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=86401

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);