]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
parisc: disable preemption in send_IPI_allbutself()
authorSven Schnelle <svens@stackframe.org>
Sat, 9 Oct 2021 18:24:38 +0000 (20:24 +0200)
committerHelge Deller <deller@gmx.de>
Sat, 30 Oct 2021 21:11:01 +0000 (23:11 +0200)
Otherwise we might not stop all other CPUs.

Signed-off-by: Sven Schnelle <svens@stackframe.org>
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/kernel/smp.c

index 1405b603b91b6be6909530825ad455ee150ebbf3..3413e6949c872483b08af23b84a28d27cee93f20 100644 (file)
@@ -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();
 }