]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
sh: show held locks in stack trace with lockdep.
authorPaul Mundt <lethal@linux-sh.org>
Wed, 6 Dec 2006 02:07:51 +0000 (11:07 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Wed, 6 Dec 2006 02:07:51 +0000 (11:07 +0900)
Follows the same change as other architectures..

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/traps.c

index 0ee298079d827134c1f6ad9aaa7ae8e7ffee2173..3762d9dc20466a026720b1e2821e3c7a4aef8db8 100644 (file)
@@ -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)