]> git.baikalelectronics.ru Git - kernel.git/commit
sparc32, leon: Enable interrupts before going idle to avoid getting stuck
authorAndreas Larsson <andreas@gaisler.com>
Mon, 10 Jun 2013 06:56:41 +0000 (08:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Jun 2013 09:10:29 +0000 (02:10 -0700)
commitf1d73fef9ef8b5d94d84defe6e4dcd5cfdc561af
tree5d7e6e61607d8532bd41c4255528ba451fa9d7f1
parentd8362f51f4eab2f6bee7903812ad8904bb7a5863
sparc32, leon: Enable interrupts before going idle to avoid getting stuck

This enables interrupts for Leon before having the CPU enter power-down mode.

Commit 8ba6bd769280f771f0f817c2776885e5446b7e8c, "sparc: Use generic idle loop",
gets the CPU stuck on idle for Leon systems. On Leon, disabling interrupts and
powering down the processor will get the processor stuck waiting for an
interrupt that will never be reacted to.

Signed-off-by: Andreas Larsson <andreas@gaisler.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/leon_pmc.c