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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user