]> www.infradead.org Git - linux.git/commit
x86/smp: Add smp_ops.stop_this_cpu() callback
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Fri, 14 Jun 2024 09:59:01 +0000 (12:59 +0300)
committerBorislav Petkov (AMD) <bp@alien8.de>
Mon, 17 Jun 2024 15:46:20 +0000 (17:46 +0200)
commit26ba7353caaa7140561d3f7693a77a3eb68c722c
tree4c1305cbc1c7cbd0b7c581b5dae033dadb51363f
parentdb0936830a2fcc35e2b283275acf61b6d3ae1e11
x86/smp: Add smp_ops.stop_this_cpu() callback

If the helper is defined, it is called instead of halt() to stop the CPU at the
end of stop_this_cpu() and on crash CPU shutdown.

ACPI MADT will use it to hand over the CPU to BIOS in order to be able to wake
it up again after kexec.

Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Kai Huang <kai.huang@intel.com>
Tested-by: Tao Liu <ltao@redhat.com>
Link: https://lore.kernel.org/r/20240614095904.1345461-17-kirill.shutemov@linux.intel.com
arch/x86/include/asm/smp.h
arch/x86/kernel/process.c
arch/x86/kernel/reboot.c