OSDN Git Service

powerpc/xmon: Avoid tripping SMP hardlockup watchdog
authorNicholas Piggin <npiggin@gmail.com>
Fri, 29 Sep 2017 03:29:40 +0000 (13:29 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 4 Oct 2017 00:26:23 +0000 (11:26 +1100)
commit064996d62a33ffe10264b5af5dca92d54f60f806
treeb1a8280f35dc949c35e4ac0864a52db688c12b20
parent80e4d70b06863e0104e5a0dc78aa3710297fbd4b
powerpc/xmon: Avoid tripping SMP hardlockup watchdog

The SMP hardlockup watchdog cross-checks other CPUs for lockups, which
causes xmon headaches because it's assuming interrupts hard disabled
means no watchdog troubles. Try to improve that by calling
touch_nmi_watchdog() in obvious places where secondaries are spinning.

Also annotate these spin loops with spin_begin/end calls.

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