diff options
author | 2024-03-04 11:12:22 +0100 | |
---|---|---|
committer | 2024-03-04 12:01:54 +0100 | |
commit | 712610725c48c829e42bebfc9908cd92468e2731 (patch) | |
tree | 48ab84808ef0195a784ce0cdb94b8f0b9bfcf41c /arch/x86/include/asm/smp.h | |
parent | x86/msr: Add missing __percpu annotations (diff) | |
download | linux-712610725c48c829e42bebfc9908cd92468e2731.tar.gz linux-712610725c48c829e42bebfc9908cd92468e2731.tar.bz2 linux-712610725c48c829e42bebfc9908cd92468e2731.zip |
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
Diffstat (limited to 'arch/x86/include/asm/smp.h')
-rw-r--r-- | arch/x86/include/asm/smp.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/x86/include/asm/smp.h b/arch/x86/include/asm/smp.h index 4fab2ed454f3..31edeab5ee88 100644 --- a/arch/x86/include/asm/smp.h +++ b/arch/x86/include/asm/smp.h @@ -59,11 +59,6 @@ static inline void stop_other_cpus(void) smp_ops.stop_other_cpus(1); } -static inline void smp_prepare_boot_cpu(void) -{ - smp_ops.smp_prepare_boot_cpu(); -} - static inline void smp_prepare_cpus(unsigned int max_cpus) { smp_ops.smp_prepare_cpus(max_cpus); |