x86/smp: Split sending INIT IPI out into a helper function
authorThomas Gleixner <tglx@linutronix.de>
Thu, 15 Jun 2023 20:33:58 +0000 (22:33 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 20 Jun 2023 12:51:47 +0000 (14:51 +0200)
commit6087dd5e86ff03a8cd4cffdf463a7f457e65cbff
treeda5734d162321fecf94b12b3fa9dfdbc0cc285f3
parentd7893093a7417527c0d73c9832244e65c9d0114f
x86/smp: Split sending INIT IPI out into a helper function

Putting CPUs into INIT is a safer place during kexec() to park CPUs.

Split the INIT assert/deassert sequence out so it can be reused.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Ashok Raj <ashok.raj@intel.com>
Link: https://lore.kernel.org/r/20230615193330.551157083@linutronix.de
arch/x86/kernel/smpboot.c