powerpc/smp: Fix NMI IPI timeout
authorNicholas Piggin <npiggin@gmail.com>
Mon, 26 Nov 2018 02:01:05 +0000 (12:01 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 21 Feb 2019 13:10:15 +0000 (00:10 +1100)
commit1b5fc84aba170bdfe3533396ca9662ceea1609b7
treef19662e67ebf2c9f7c9711332341643681519d9d
parentbba436309d579f306419e0bffe8a28a5935cb17a
powerpc/smp: Fix NMI IPI timeout

The NMI IPI timeout logic is broken, if __smp_send_nmi_ipi() times out
on the first condition, delay_us will be zero which will send it into
the second spin loop with no timeout so it will spin forever.

Fixes: 5b73151fff63 ("powerpc: NMI IPI make NMI IPIs fully sychronous")
Cc: stable@vger.kernel.org # v4.19+
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/smp.c