From: Sven Schnelle Date: Sat, 9 Oct 2021 18:24:38 +0000 (+0200) Subject: parisc: disable preemption in send_IPI_allbutself() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=1c2fb946cdb784b2f64e12b54f1e93685167049c;p=linux.git parisc: disable preemption in send_IPI_allbutself() Otherwise we might not stop all other CPUs. Signed-off-by: Sven Schnelle Signed-off-by: Helge Deller --- diff --git a/arch/parisc/kernel/smp.c b/arch/parisc/kernel/smp.c index 1405b603b91b6..3413e6949c872 100644 --- a/arch/parisc/kernel/smp.c +++ b/arch/parisc/kernel/smp.c @@ -219,11 +219,13 @@ static inline void send_IPI_allbutself(enum ipi_message_type op) { int i; - + + preempt_disable(); for_each_online_cpu(i) { if (i != smp_processor_id()) send_IPI_single(i, op); } + preempt_enable(); }