mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 17:22:46 -04:00
Fix re-enabling ACPI on wakeup from hibernation. The problem was that
acpi_Disable() cleared all GPE events. Some old ACPI implementaions still need current re-enabling code.
This commit is contained in:
parent
dc62834a97
commit
964679ce58
1 changed files with 2 additions and 3 deletions
|
|
@ -1346,9 +1346,8 @@ acpi_SetSleepState(struct acpi_softc *sc, int state)
|
|||
AcpiUtReleaseMutex(ACPI_MTX_HARDWARE);
|
||||
|
||||
/* Re-enable ACPI hardware on wakeup from sleep state 4. */
|
||||
if (state >= ACPI_STATE_S4) {
|
||||
acpi_Disable(sc);
|
||||
acpi_Enable(sc);
|
||||
if (state == ACPI_STATE_S4) {
|
||||
AcpiEnable();
|
||||
}
|
||||
} else {
|
||||
status = AcpiEnterSleepState((UINT8)state);
|
||||
|
|
|
|||
Loading…
Reference in a new issue