aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAymeric Wibo <obiwac@FreeBSD.org>2026-02-05 00:49:26 +0000
committerAymeric Wibo <obiwac@FreeBSD.org>2026-02-05 15:10:31 +0000
commitd15d6bf83de97bd1742621bc10fe2feeb503cfdd (patch)
tree7dd7fa51fbc31e8f3d70fd0d53062de21acae834
parentd35e369d0a7f37c580b89485a148d007faf05b52 (diff)
acpi: Fix trying to enter NONE state
In acpi_system_eventhandler_sleep(), I forgot to update ACPI_STATE_UNKNOWN when switching to new sleep types. Reviewed by: olce Approved by: olce Fixes: 97d152698f48 ("acpi: Use sleep types defined in sys/power.h") Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D55119
-rw-r--r--sys/dev/acpica/acpi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c
index bb7c93bcc256..53099db8ae84 100644
--- a/sys/dev/acpica/acpi.c
+++ b/sys/dev/acpica/acpi.c
@@ -4062,7 +4062,7 @@ acpi_system_eventhandler_sleep(void *arg, enum power_stype stype)
ACPI_FUNCTION_TRACE_U32((char *)(uintptr_t)__func__, stype);
/* Check if button action is disabled or unknown. */
- if (stype == ACPI_STATE_UNKNOWN)
+ if (stype == POWER_STYPE_UNKNOWN)
return;
/*