[MIPS] lockdep: Deal with interrupt disable hazard in TRACE_IRQFLAGS
authorChris Dearman <chris@mips.com>
Mon, 26 Mar 2007 13:48:50 +0000 (14:48 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 29 Mar 2007 22:46:35 +0000 (23:46 +0100)
commitfe99f1b184efb75c50dd8cbdfff99b559c2cb3b3
tree7baefefa620815b1d585af092e87c03a5ffdda17
parentcbde5ebc972c0577741a69c85d5e5afad19d813b
[MIPS] lockdep: Deal with interrupt disable hazard in TRACE_IRQFLAGS

Between the mtc0 or di instruction that disables interrupts and the
following hazard barrier a processor may still take interrupts.  If an
interrupt is taken after interrupts are disabled but before the state
is updated it will appear to restore_all that it is incorrectly returning
with interrupts disabled.

Signed-off-by: Chris Dearman <chris@mips.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/genex.S