Fix mis-merges in the previous commit.
This commit is contained in:
parent
a88e22b7ad
commit
3664686221
@ -2690,7 +2690,7 @@ acpi_wake_sleep_prep(ACPI_HANDLE handle, int sstate)
|
||||
* and set _PSW.
|
||||
*/
|
||||
if (sstate > prw.lowest_wake) {
|
||||
AcpiDisableGpe(prw.gpe_handle, prw.gpe_bit);
|
||||
AcpiGpeWakeup(prw.gpe_handle, prw.gpe_bit, ACPI_GPE_DISABLE);
|
||||
if (bootverbose)
|
||||
device_printf(dev, "wake_prep disabled wake for %s (S%d)\n",
|
||||
acpi_name(handle), sstate);
|
||||
@ -2727,7 +2727,7 @@ acpi_wake_run_prep(ACPI_HANDLE handle, int sstate)
|
||||
* clear _PSW and turn off any power resources it used.
|
||||
*/
|
||||
if (sstate > prw.lowest_wake) {
|
||||
AcpiEnableGpe(prw.gpe_handle, prw.gpe_bit);
|
||||
AcpiGpeWakeup(prw.gpe_handle, prw.gpe_bit, ACPI_GPE_ENABLE);
|
||||
if (bootverbose)
|
||||
device_printf(dev, "run_prep re-enabled %s\n", acpi_name(handle));
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user