powerpc: Hard disable interrupts in xmon
authorAnton Blanchard <anton@samba.org>
Tue, 5 Aug 2014 04:55:00 +0000 (14:55 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 13 Aug 2014 05:13:48 +0000 (15:13 +1000)
commita71d64b4dc4067808549935583d984c7fc9ea647
tree8679cdc9688707feb94e24f19a7c848009f654c4
parent56758e3c3ca7e3d8960e0e8f881e80adf119f4fe
powerpc: Hard disable interrupts in xmon

xmon only soft disables interrupts. This seems like a bad idea - we
certainly don't want decrementer and PMU exceptions going off when
we are debugging something inside xmon.

This issue was uncovered when the hard lockup detector went off
inside xmon. To ensure we wont get a spurious hard lockup warning,
I also call touch_nmi_watchdog() when exiting xmon.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/xmon/xmon.c