sh: Add a few missing irqflags tracing markers.
authorMatt Fleming <matt@console-pimps.org>
Tue, 18 Aug 2009 02:35:09 +0000 (11:35 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 18 Aug 2009 02:35:09 +0000 (11:35 +0900)
commitf3a8308864f920d2babe76921733d76ec4a11fb8
tree3dd604503b020d0aee42f18d4e3d8d9f0667d06e
parent63cd91dfd4976cb9687b07e9a9864912631d2e08
sh: Add a few missing irqflags tracing markers.

save_regs contains an SR modification without an irqflags annotation,
which resulted in a missing TRACE_IRQS_OFF in the interrupt exception
path on SH-3/SH4.

I've also moved the TRACE_IRQS_OFF/ON annotation when returning from the
interrupt to just before we call __restore_all. This seems like the most
logical place to put this because the annotation is for when we restore
the SR register so we should delay the annotation until as last as
possible.

We were also missing a TRACE_IRQS_OFF in resume_kernel when
CONFIG_PREEMPT is enabled.

The end result is that this fixes up the lockdep engine debugging support
with CONFIG_PREEMPT enabled on all SH-3/4 parts.

Signed-off-by: Matt Fleming <matt@console-pimps.org>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/cpu/sh3/entry.S
arch/sh/kernel/entry-common.S