git: 9cdf326b4fae - main - run acpi_shutdown_final later to give other handlers a chance

From: Andriy Gapon <avg_at_FreeBSD.org>
Date: Sun, 28 Jan 2024 13:14:01 UTC
The branch main has been updated by avg:

URL: https://cgit.FreeBSD.org/src/commit/?id=9cdf326b4faef97f0d3314b5dd693308ac494d48

commit 9cdf326b4faef97f0d3314b5dd693308ac494d48
Author:     Andriy Gapon <avg@FreeBSD.org>
AuthorDate: 2021-12-20 11:01:56 +0000
Commit:     Andriy Gapon <avg@FreeBSD.org>
CommitDate: 2024-01-28 13:04:55 +0000

    run acpi_shutdown_final later to give other handlers a chance
    
    For example, shutdown_panic wants to produce some output and maybe take
    some input before a system is actually reset.
    
    The change should only make difference for the case of system reset
    (reboot), poweroff and halt should not be affected.
    
    The change makes difference only if hw.acpi.handle_reboot is set.  It
    used to default to zero until r213755 / ac731af5670c7.
---
 sys/dev/acpica/acpi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c
index 9196c446ae80..7d1fc10afb9e 100644
--- a/sys/dev/acpica/acpi.c
+++ b/sys/dev/acpica/acpi.c
@@ -675,7 +675,7 @@ acpi_attach(device_t dev)
 
     /* Register our shutdown handler. */
     EVENTHANDLER_REGISTER(shutdown_final, acpi_shutdown_final, sc,
-	SHUTDOWN_PRI_LAST);
+	SHUTDOWN_PRI_LAST + 150);
 
     /*
      * Register our acpi event handlers.