MIPS: Alchemy: fix wait function
authorManuel Lauss <manuel.lauss@gmail.com>
Sat, 8 Jun 2013 19:15:41 +0000 (19:15 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 10 Jun 2013 15:59:46 +0000 (17:59 +0200)
commite63a24ddc79cc801766646fb643451ad366a1121
treecf2b75c0fae6e1ff1e036ae890a890ba8f4fb07e
parent317ddd256b9c24b0d78fa8018f80f1e495481a10
MIPS: Alchemy: fix wait function

Only an interrupt can wake the core from 'wait', enable interrupts
locally before executing 'wait'.

[ralf@linux-mips.org: This leave the race between an interrupt that's
setting TIF_NEED_RESCHEd and entering the WAIT status. but at least it's
going to bring Alchemy back from the dead, so I'm going to apply this
patch.]

Signed-off-by: Manuel Lauss <manuel.lauss@gmail.com>
Cc: Linux-MIPS <linux-mips@linux-mips.org>
Cc: Maciej W. Rozycki <macro@linux-mips.org>
Patchwork: https://patchwork.linux-mips.org/patch/5408/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/idle.c