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 / ac731af567.
This commit is contained in:
Andriy Gapon 2021-12-20 13:01:56 +02:00
parent cbf7c81b60
commit 9cdf326b4f

View file

@ -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.