diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2024-03-04 13:12:22 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2024-03-04 14:01:54 +0300 |
commit | 712610725c48c829e42bebfc9908cd92468e2731 (patch) | |
tree | 48ab84808ef0195a784ce0cdb94b8f0b9bfcf41c /arch/arc | |
parent | 5323922f50ecdf9d10cdd2fabd06507e5b4f3feb (diff) | |
download | linux-712610725c48c829e42bebfc9908cd92468e2731.tar.xz |
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/arc')
-rw-r--r-- | arch/arc/kernel/smp.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/arc/kernel/smp.c b/arch/arc/kernel/smp.c index 8d9b188caa27..b2f2c59279a6 100644 --- a/arch/arc/kernel/smp.c +++ b/arch/arc/kernel/smp.c @@ -39,11 +39,6 @@ struct plat_smp_ops __weak plat_smp_ops; /* XXX: per cpu ? Only needed once in early secondary boot */ struct task_struct *secondary_idle_tsk; -/* Called from start_kernel */ -void __init smp_prepare_boot_cpu(void) -{ -} - static int __init arc_get_cpu_map(const char *name, struct cpumask *cpumask) { unsigned long dt_root = of_get_flat_dt_root(); |