]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: use NMI IPI for smp_send_stop
authorNicholas Piggin <npiggin@gmail.com>
Sun, 1 Apr 2018 10:36:13 +0000 (20:36 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 3 Apr 2018 12:59:09 +0000 (22:59 +1000)
commit5a107204c4c45e9ff284e79d2a7644a8ba0fff5e
treeb3a9aa7ef1247c67ad75b42147e13f35ed528a8f
parentcf0b11c976653f2f8fcfb61024809612bd79fa93
powerpc: use NMI IPI for smp_send_stop

Use the NMI IPI rather than smp_call_function for smp_send_stop.
Have stopped CPUs hard disable interrupts rather than just soft
disable.

This function is used in crash/panic/shutdown paths to bring other
CPUs down as quickly and reliably as possible, and minimizing their
potential to cause trouble.

Avoiding the Linux smp_call_function infrastructure and (if supported)
using true NMI IPIs makes this more robust.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/smp.c