summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/dev/acpica/acpi.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c
index da91ce9..06de497 100644
--- a/sys/dev/acpica/acpi.c
+++ b/sys/dev/acpica/acpi.c
@@ -2727,6 +2727,10 @@ acpi_system_eventhandler_sleep(void *arg, int state)
ACPI_FUNCTION_TRACE_U32((char *)(uintptr_t)__func__, state);
+ /* Check if button action is disabled. */
+ if (state == ACPI_S_STATES_MAX + 1)
+ return;
+
/* Request that the system prepare to enter the given suspend state. */
ret = acpi_ReqSleepState((struct acpi_softc *)arg, state);
if (ret != 0)
OpenPOWER on IntegriCloud