diff options
author | takawata <takawata@FreeBSD.org> | 2002-01-09 16:00:31 +0000 |
---|---|---|
committer | takawata <takawata@FreeBSD.org> | 2002-01-09 16:00:31 +0000 |
commit | bd6e81c0c6dd8964a855eb008899c8987da0b344 (patch) | |
tree | 9e9e0cdcec535025d81f2a46cb3b03130a18b540 /sys/i386/acpica | |
parent | 8e745c4cf54029a0a1f89a4fdfc65422d4d9dd2f (diff) | |
download | FreeBSD-src-bd6e81c0c6dd8964a855eb008899c8987da0b344.zip FreeBSD-src-bd6e81c0c6dd8964a855eb008899c8987da0b344.tar.gz |
Fix S3 breakage.
Now AcpiEnterSleep() is light enough, so flushing cache
before the function is not too early.
Diffstat (limited to 'sys/i386/acpica')
-rw-r--r-- | sys/i386/acpica/acpi_wakeup.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/i386/acpica/acpi_wakeup.c b/sys/i386/acpica/acpi_wakeup.c index 8d16393..6806d59 100644 --- a/sys/i386/acpica/acpi_wakeup.c +++ b/sys/i386/acpica/acpi_wakeup.c @@ -241,6 +241,8 @@ acpi_sleep_machdep(struct acpi_softc *sc, int state) acpi_printcpu(); } + wbinbd(); + if (state == ACPI_STATE_S4 && sc->acpi_s4bios) { status = AcpiEnterSleepStateS4Bios(); } else { @@ -254,7 +256,6 @@ acpi_sleep_machdep(struct acpi_softc *sc, int state) ret = -1; goto out; } - wbinvd(); for (;;) ; } else { |