]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6dcf456b78acfb4bdee1ed133cf49d03888d759c
treeb1a8280f35dc949c35e4ac0864a52db688c12b20
parent9fa0521d4aeeaeceba60b9127afccc01f6b9410c
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