git: 7ff26d59e738 - main - acpi: Invoke power_resume_check eventhandler
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 18 Sep 2026 10:59:26 UTC
The branch main has been updated by obiwac:
URL: https://cgit.FreeBSD.org/src/commit/?id=7ff26d59e7386bb92e4384ae8d1f9d2280acf511
commit 7ff26d59e7386bb92e4384ae8d1f9d2280acf511
Author: Aymeric Wibo <obiwac@FreeBSD.org>
AuthorDate: 2026-09-18 10:48:32 +0000
Commit: Aymeric Wibo <obiwac@FreeBSD.org>
CommitDate: 2026-09-18 10:59:13 +0000
acpi: Invoke power_resume_check eventhandler
Reviewed by: olce
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D59741
---
sys/dev/acpica/acpi.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c
index e2bc335d98e9..e5f82b00135e 100644
--- a/sys/dev/acpica/acpi.c
+++ b/sys/dev/acpica/acpi.c
@@ -3908,8 +3908,11 @@ backout:
EVENTHANDLER_INVOKE(power_resume, stype);
- if (stype == POWER_STYPE_SUSPEND_TO_IDLE && ACPI_SUCCESS(status))
- check_post_suspend_to_idle(sc->acpi_dev);
+ if (ACPI_SUCCESS(status)) {
+ if (stype == POWER_STYPE_SUSPEND_TO_IDLE)
+ check_post_suspend_to_idle(sc->acpi_dev);
+ EVENTHANDLER_INVOKE(power_resume_check, stype);
+ }
/* Allow another sleep request after a while. */
callout_schedule(&acpi_sleep_timer, hz * ACPI_MINIMUM_AWAKETIME);