]> 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)
commite56a82b31e5d60d9f3b18e7f80a4eedc0a090339
treeb1a8280f35dc949c35e4ac0864a52db688c12b20
parent810e9e6cc4a19b6707440a2432c5aec46c4c7ec6
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