From: Paul Mundt Date: Wed, 6 Dec 2006 02:07:51 +0000 (+0900) Subject: sh: show held locks in stack trace with lockdep. X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9b8c90eb0d916f6802f8bbac79f61aca6ac533e8;p=openwrt%2Fstaging%2Fblogic.git sh: show held locks in stack trace with lockdep. Follows the same change as other architectures.. Signed-off-by: Paul Mundt --- 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 @@ #include #include #include +#include #include #include @@ -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)