Fix S3 breakage.

Now AcpiEnterSleep() is light enough, so flushing cache
before the function is not too early.
This commit is contained in:
Takanori Watanabe 2002-01-09 16:00:31 +00:00
parent 217baf9cbc
commit 89b8315762
2 changed files with 4 additions and 2 deletions

View File

@ -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 {

View File

@ -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 {