]> git.baikalelectronics.ru Git - kernel.git/commit
sh: Fix lockdep debugging oops on SH-3/4.
authorPaul Mundt <lethal@linux-sh.org>
Wed, 1 Aug 2007 07:17:07 +0000 (16:17 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Wed, 1 Aug 2007 07:17:07 +0000 (16:17 +0900)
commitb879756d9d655fb3cb9b8f52182274e7570ca21c
tree4029a5cc49ac3fdbefa57b3117566007b8cfbcc4
parentc952e9f1dbf298ffde2fc4b5896a01b26597b4bf
sh: Fix lockdep debugging oops on SH-3/4.

In the SH-3/4 TLB access violation path we were enabling IRQs before
the call in to trace_hardirqs_on(), which ended up triggering:

        if (DEBUG_LOCKS_WARN_ON(!irqs_disabled()))
                return;

in kernel/lockdep.c:2031. Fix this up by removing the early re-enable,
we were already re-enabling IRQs post-trace_hardirqs_on() already, so
the semantics are now as was initially intended.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/cpu/sh3/entry.S