mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
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:
parent
cbf7c81b60
commit
9cdf326b4f
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue