projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
h8300: add zImage support
[powerpc.git]
/
kernel
/
lockdep.c
diff --git
a/kernel/lockdep.c
b/kernel/lockdep.c
index
a08a172
..
7065a68
100644
(file)
--- a/
kernel/lockdep.c
+++ b/
kernel/lockdep.c
@@
-2602,7
+2602,7
@@
out_restore:
raw_local_irq_restore(flags);
}
raw_local_irq_restore(flags);
}
-void
__init
lockdep_init(void)
+void lockdep_init(void)
{
int i;
{
int i;
@@
-2742,6
+2742,10
@@
void debug_show_all_locks(void)
int count = 10;
int unlock = 1;
int count = 10;
int unlock = 1;
+ if (unlikely(!debug_locks)) {
+ printk("INFO: lockdep is turned off.\n");
+ return;
+ }
printk("\nShowing all locks held in the system:\n");
/*
printk("\nShowing all locks held in the system:\n");
/*
@@
-2785,6
+2789,10
@@
EXPORT_SYMBOL_GPL(debug_show_all_locks);
void debug_show_held_locks(struct task_struct *task)
{
void debug_show_held_locks(struct task_struct *task)
{
+ if (unlikely(!debug_locks)) {
+ printk("INFO: lockdep is turned off.\n");
+ return;
+ }
lockdep_print_held_locks(task);
}
lockdep_print_held_locks(task);
}