kexec: Change shutdown handler priority

The kexec shutdown handler should run after everything else, but before
the other platform shutdown handlers.  With (SHUTDOWN_PRI_DEFAULT - 150)
priority it would run before anything else, including all the device
shutdown handlers.  Change to (SHUTDOWN_PRI_LAST - 150) where it
belongs.

Sponsored by:	Hewlett Packard Enterprise
This commit is contained in:
Justin Hibbits
2025-12-01 11:50:30 -05:00
parent 17fd7780fb
commit 882821b78f
+1 -1
View File
@@ -314,7 +314,7 @@ kern_kexec_load(struct thread *td, u_long entry, u_long nseg,
if (kexec_reboot_handler == NULL)
kexec_reboot_handler =
EVENTHANDLER_REGISTER(shutdown_final, kexec_reboot, NULL,
SHUTDOWN_PRI_DEFAULT - 150);
SHUTDOWN_PRI_LAST - 150);
} else {
if (kexec_reboot_handler != NULL)
EVENTHANDLER_DEREGISTER(shutdown_final, kexec_reboot_handler);