Skip to content

Commit

Permalink
parisc: disable preemption in send_IPI_allbutself()
Browse files Browse the repository at this point in the history
Otherwise we might not stop all other CPUs.

Signed-off-by: Sven Schnelle <svens@stackframe.org>
Signed-off-by: Helge Deller <deller@gmx.de>
  • Loading branch information
svenschnelle authored and hdeller committed Oct 26, 2021
1 parent 67f6bda commit 82bd445
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion arch/parisc/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}


Expand Down

0 comments on commit 82bd445

Please sign in to comment.