From 964679ce5891b4dfd99356afc47d5d68dee74b5e Mon Sep 17 00:00:00 2001 From: Mitsuru IWASAKI Date: Thu, 15 Nov 2001 15:12:08 +0000 Subject: [PATCH] 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. --- sys/dev/acpica/acpi.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c index 9041e1b543c..f6a01976e28 100644 --- a/sys/dev/acpica/acpi.c +++ b/sys/dev/acpica/acpi.c @@ -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);