[MIPS] Fix potential latency problem due to non-atomic cpu_wait.
commitf5d7296d5fc84f44f9e68b4e73b85fd8aff241d2
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Sun, 11 Nov 2007 17:05:18 +0000 (12 02:05 +0900)
committerRalf Baechle <ralf@linux-mips.org>
Sun, 21 Sep 2008 08:55:56 +0000 (21 10:55 +0200)
tree155a5f1649771c06d6e7ee5f4398aac4240df1f9
parentbc5f0bcb3b19275da68d8422a8eeb22d2020bbb6
[MIPS] Fix potential latency problem due to non-atomic cpu_wait.

If an interrupt happened between checking of NEED_RESCHED and WAIT
instruction, adjust EPC to restart from checking of NEED_RESCHED.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/cpu-probe.c
arch/mips/kernel/genex.S
arch/mips/kernel/traps.c