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-Tag: v3.12-rc1~32302^2~20^2~32^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9b8c90eb0d916f6802f8bbac79f61aca6ac533e8;p=kernel%2Fkernel-generic.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 0ee2980..3762d9d 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)