aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/traps.c
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2006-12-05 21:07:51 -0500
committerPaul Mundt <lethal@linux-sh.org>2006-12-05 21:07:51 -0500
commit9b8c90eb0d916f6802f8bbac79f61aca6ac533e8 (patch)
tree09f9f7d40e2e213bbc2678cbe1bea1eb06ca65db /arch/sh/kernel/traps.c
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>
Diffstat (limited to 'arch/sh/kernel/traps.c')
-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 0ee298079d82..3762d9dc2046 100644
--- a/arch/sh/kernel/traps.c
+++ b/arch/sh/kernel/traps.c
@@ -18,6 +18,7 @@
18#include <linux/module.h> 18#include <linux/module.h>
19#include <linux/kallsyms.h> 19#include <linux/kallsyms.h>
20#include <linux/io.h> 20#include <linux/io.h>
21#include <linux/debug_locks.h>
21#include <asm/system.h> 22#include <asm/system.h>
22#include <asm/uaccess.h> 23#include <asm/uaccess.h>
23 24
@@ -872,6 +873,11 @@ void show_trace(struct task_struct *tsk, unsigned long *sp,
872 } 873 }
873 874
874 printk("\n"); 875 printk("\n");
876
877 if (!tsk)
878 tsk = current;
879
880 debug_show_held_locks(tsk);
875} 881}
876 882
877void show_stack(struct task_struct *tsk, unsigned long *sp) 883void show_stack(struct task_struct *tsk, unsigned long *sp)