summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVivian Wang <wangruikang@iscas.ac.cn>2026-04-05 03:42:39 +0300
committerPaul Walmsley <pjw@kernel.org>2026-04-05 03:42:39 +0300
commitfe0cf82fdeb318e8b2c78a4142385f42f467ff8c (patch)
treef21bd6fdb2f3ab83346db7a9619a8389af581196
parent7d7c2d1c48790799568d06d1d4b1ca9ac7c900fb (diff)
downloadlinux-fe0cf82fdeb318e8b2c78a4142385f42f467ff8c.tar.xz
riscv: smp: Remove outdated comment about disabling preemption
Commit f1a0a376ca0c ("sched/core: Initialize the idle task with preemption disabled") removed a call to preempt_disable(), but not the associated comment. Remove the outdated comment. Fixes: f1a0a376ca0c ("sched/core: Initialize the idle task with preemption disabled") Signed-off-by: Vivian Wang <wangruikang@iscas.ac.cn> Link: https://patch.msgid.link/20260204-riscv-smp-comment-update-2026-01-v1-1-8b77aa181530@iscas.ac.cn Signed-off-by: Paul Walmsley <pjw@kernel.org>
-rw-r--r--arch/riscv/kernel/smpboot.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/riscv/kernel/smpboot.c b/arch/riscv/kernel/smpboot.c
index d85916a3660c..0e6fe20c69a2 100644
--- a/arch/riscv/kernel/smpboot.c
+++ b/arch/riscv/kernel/smpboot.c
@@ -259,10 +259,6 @@ asmlinkage __visible void smp_callin(void)
#ifndef CONFIG_HOTPLUG_PARALLEL
complete(&cpu_running);
#endif
- /*
- * Disable preemption before enabling interrupts, so we don't try to
- * schedule a CPU that hasn't actually started yet.
- */
local_irq_enable();
cpu_startup_entry(CPUHP_AP_ONLINE_IDLE);
}