diff mbox series

[v2,4/5] parisc: disable preemption in send_IPI_allbutself()

Message ID 20211009182439.30016-5-svens@stackframe.org (mailing list archive)
State Accepted, archived
Headers show
Series parisc: fixes for CONFIG_PREEMPT | expand

Commit Message

Sven Schnelle Oct. 9, 2021, 6:24 p.m. UTC
Otherwise we might not stop all other CPUs.

Signed-off-by: Sven Schnelle <svens@stackframe.org>
---
 arch/parisc/kernel/smp.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/arch/parisc/kernel/smp.c b/arch/parisc/kernel/smp.c
index 1405b603b91b..3413e6949c87 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();
 }