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>
This commit is contained in:
parent
0c020e3dfb
commit
9b8c90eb0d
1 changed files with 6 additions and 0 deletions
|
@ -18,6 +18,7 @@
|
||||||
#include <linux/module.h>
|
#include <linux/module.h>
|
||||||
#include <linux/kallsyms.h>
|
#include <linux/kallsyms.h>
|
||||||
#include <linux/io.h>
|
#include <linux/io.h>
|
||||||
|
#include <linux/debug_locks.h>
|
||||||
#include <asm/system.h>
|
#include <asm/system.h>
|
||||||
#include <asm/uaccess.h>
|
#include <asm/uaccess.h>
|
||||||
|
|
||||||
|
@ -872,6 +873,11 @@ void show_trace(struct task_struct *tsk, unsigned long *sp,
|
||||||
}
|
}
|
||||||
|
|
||||||
printk("\n");
|
printk("\n");
|
||||||
|
|
||||||
|
if (!tsk)
|
||||||
|
tsk = current;
|
||||||
|
|
||||||
|
debug_show_held_locks(tsk);
|
||||||
}
|
}
|
||||||
|
|
||||||
void show_stack(struct task_struct *tsk, unsigned long *sp)
|
void show_stack(struct task_struct *tsk, unsigned long *sp)
|
||||||
|
|
Loading…
Reference in a new issue