ARM: 7466/1: disable interrupt before spinning endlessly
authorShawn Guo <shawn.guo@linaro.org>
Fri, 13 Jul 2012 07:19:34 +0000 (08:19 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 31 Jul 2012 09:30:31 +0000 (10:30 +0100)
commit98bd8b96b26db3399a48202318dca4aaa2515355
tree1dcb9a580130d0653b4d9b66bbf78b2fe30d1726
parenta5d5f7daa744b34477c4a12728bde0a1694a1707
ARM: 7466/1: disable interrupt before spinning endlessly

The CPU will endlessly spin at the end of machine_halt and
machine_restart calls.  However, this will lead to a soft lockup
warning after about 20 seconds, if CONFIG_LOCKUP_DETECTOR is enabled,
as system timer is still alive.

Disable interrupt before going to spin endlessly, so that the lockup
warning will never be seen.

Cc: <stable@vger.kernel.org>
Reported-by: Marek Vasut <marex@denx.de>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/process.c