summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/dev/acpica/acpi.c14
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);
OpenPOWER on IntegriCloud