summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2006-12-06 11:07:51 +0900
committerPaul Mundt <lethal@linux-sh.org>2006-12-06 11:07:51 +0900
commit9b8c90eb0d916f6802f8bbac79f61aca6ac533e8 (patch)
tree09f9f7d40e2e213bbc2678cbe1bea1eb06ca65db
parent0c020e3dfb9429a3b31669a5ac2b86dd675c1ad2 (diff)
sh: show held locks in stack trace with lockdep.
Follows the same change as other architectures.. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
-rw-r--r--arch/sh/kernel/traps.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/sh/kernel/traps.c b/arch/sh/kernel/traps.c
index 0ee298079d8..3762d9dc204 100644
--- a/arch/sh/kernel/traps.c
+++ b/arch/sh/kernel/traps.c
@@ -18,6 +18,7 @@
#include <linux/module.h>
#include <linux/kallsyms.h>
#include <linux/io.h>
+#include <linux/debug_locks.h>
#include <asm/system.h>
#include <asm/uaccess.h>
@@ -872,6 +873,11 @@ void show_trace(struct task_struct *tsk, unsigned long *sp,
}
printk("\n");
+
+ if (!tsk)
+ tsk = current;
+
+ debug_show_held_locks(tsk);
}
void show_stack(struct task_struct *tsk, unsigned long *sp)