smp: Consolidate smp_prepare_boot_cpu()
authorThomas Gleixner <tglx@linutronix.de>
Mon, 4 Mar 2024 10:12:22 +0000 (11:12 +0100)
committerIngo Molnar <mingo@kernel.org>
Mon, 4 Mar 2024 11:01:54 +0000 (12:01 +0100)
commit712610725c48c829e42bebfc9908cd92468e2731
tree48ab84808ef0195a784ce0cdb94b8f0b9bfcf41c
parent5323922f50ecdf9d10cdd2fabd06507e5b4f3feb
smp: Consolidate smp_prepare_boot_cpu()

There is no point in having seven architectures implementing the same empty
stub.

Provide a weak function in the init code and remove the stubs.

This also allows to utilize the function on UP which is required to
sanitize the per CPU handling on X86 UP.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20240304005104.567671691@linutronix.de
arch/alpha/kernel/smp.c
arch/arc/kernel/smp.c
arch/csky/kernel/smp.c
arch/hexagon/kernel/smp.c
arch/openrisc/kernel/smp.c
arch/riscv/kernel/smpboot.c
arch/sparc/kernel/smp_64.c
arch/x86/include/asm/smp.h
arch/x86/kernel/smpboot.c
include/linux/smp.h
init/main.c