[MIPS] lockdep: Deal with interrupt disable hazard in TRACE_IRQFLAGS
commitc88814fcb0d1e9d7eef38c20ca68c4ee3d05ed36
authorChris Dearman <chris@mips.com>
Mon, 26 Mar 2007 13:48:50 +0000 (26 14:48 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 26 Mar 2007 15:45:54 +0000 (26 16:45 +0100)
treed1243847085e14dd7d72892c8806903e35c35783
parentc238b40711a1b43d10037b2cf603de8d6ec5e274
[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