summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica/acpi.c
diff options
context:
space:
mode:
authoriwasaki <iwasaki@FreeBSD.org>2001-11-15 15:12:08 +0000
committeriwasaki <iwasaki@FreeBSD.org>2001-11-15 15:12:08 +0000
commita52673f0bc32e875d9e0f0b26bd91239469dce04 (patch)
tree1ecfe1a820128ad133f320544d69ae4e664bbbe7 /sys/dev/acpica/acpi.c
parentf2e1c31beae07376cd0d719fab08f0878a382706 (diff)
downloadFreeBSD-src-a52673f0bc32e875d9e0f0b26bd91239469dce04.zip
FreeBSD-src-a52673f0bc32e875d9e0f0b26bd91239469dce04.tar.gz
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.
Diffstat (limited to 'sys/dev/acpica/acpi.c')
-rw-r--r--sys/dev/acpica/acpi.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c
index 9041e1b..f6a0197 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);
OpenPOWER on IntegriCloud