diff options
author | iwasaki <iwasaki@FreeBSD.org> | 2001-11-05 14:51:58 +0000 |
---|---|---|
committer | iwasaki <iwasaki@FreeBSD.org> | 2001-11-05 14:51:58 +0000 |
commit | 0f7e41d94b4c202c991b2d6c89ebe1402009a28c (patch) | |
tree | 5ac8f70fbc069c17b34b77cedcf72732ec6a04d8 /sys/dev/acpica/acpi.c | |
parent | 47b2ff9548308581a0695870daa1ad067c9511dc (diff) | |
download | FreeBSD-src-0f7e41d94b4c202c991b2d6c89ebe1402009a28c.zip FreeBSD-src-0f7e41d94b4c202c991b2d6c89ebe1402009a28c.tar.gz |
Remove unnecessary WAK_STS bit waiting code for S1 sleep.
It was duplicated with AcpiEnterSleepState() since acpica-unix-20010816.
Diffstat (limited to 'sys/dev/acpica/acpi.c')
-rw-r--r-- | sys/dev/acpica/acpi.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c index 17987f0..245fa42 100644 --- a/sys/dev/acpica/acpi.c +++ b/sys/dev/acpica/acpi.c @@ -1279,7 +1279,6 @@ ACPI_STATUS acpi_SetSleepState(struct acpi_softc *sc, int state) { ACPI_STATUS status = AE_OK; - UINT16 Count; UINT8 TypeA; UINT8 TypeB; @@ -1337,19 +1336,6 @@ acpi_SetSleepState(struct acpi_softc *sc, int state) device_printf(sc->acpi_dev, "AcpiEnterSleepState failed - %s\n", AcpiFormatException(status)); break; } - /* wait for the WAK_STS bit */ - Count = 0; - while (!(AcpiHwRegisterBitAccess(ACPI_READ, ACPI_MTX_LOCK, WAK_STS))) { - AcpiOsSleep(0, 1); - /* - * Some BIOSes don't set WAK_STS at all, - * give up waiting for wakeup if we time out. - */ - if (Count > 1000) { - break; /* giving up */ - } - Count++; - } } AcpiLeaveSleepState((UINT8)state); DEVICE_RESUME(root_bus); |