aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorOlivier Certner <olce@FreeBSD.org>2026-06-04 07:37:57 +0000
committerOlivier Certner <olce@FreeBSD.org>2026-06-22 21:40:14 +0000
commit95ff2acb5555c6b165e7a32249c403cd339697d8 (patch)
tree906fd503a6c5cd67f34bb68637c5c3d4f745873d /sys/dev
parent5ca875f3be030eb8ac80d8fb1b8f8018dc5eeb09 (diff)
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/acpica/acpi.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c
index b689e936916b..0033ba734dc1 100644
--- a/sys/dev/acpica/acpi.c
+++ b/sys/dev/acpica/acpi.c
@@ -3641,8 +3641,6 @@ acpi_EnterSleepState(struct acpi_softc *sc, enum power_stype stype)
return (AE_SUPPORT);
}
- acpi_sstate = acpi_stype_to_sstate(sc, stype);
-
/* Re-entry once we're suspending is not allowed. */
status = acpi_sleep_disable(sc);
if (ACPI_FAILURE(status)) {
@@ -3678,15 +3676,15 @@ acpi_EnterSleepState(struct acpi_softc *sc, enum power_stype stype)
}
#endif
+ slp_state = ACPI_SS_NONE;
+ sc->acpi_stype = stype;
+ acpi_sstate = acpi_stype_to_sstate(sc, stype);
+
/*
* Be sure to hold bus topology lock across DEVICE_SUSPEND/RESUME.
*/
bus_topo_lock();
- slp_state = ACPI_SS_NONE;
-
- sc->acpi_stype = stype;
-
/* Enable any GPEs as appropriate and requested by the user. */
acpi_wake_prep_walk(sc, stype);
slp_state |= ACPI_SS_GPE_SET;