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)
commitd72ee6be58b7c99a6e8da6584106c5958dae2bf8
tree5d7e6e61607d8532bd41c4255528ba451fa9d7f1
parent1ffbc51a0d00e52983c70aa7c8dbc7b621d6287d
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 87fa05aeb3a5e8e21b1a5510eef6983650eff092, "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