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: v2.6.20-rc1~34^2~20^2~32^2~5 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b8c90eb0d916f6802f8bbac79f61aca6ac533e8;p=linux-2.6 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 0ee298079d..3762d9dc20 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)