Fix S3 breakage.
Now AcpiEnterSleep() is light enough, so flushing cache before the function is not too early.
This commit is contained in:
parent
217baf9cbc
commit
89b8315762
@ -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 {
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user