diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spinlock_debug.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/spinlock_debug.c b/lib/spinlock_debug.c index b6c4f898197..479fd462eaa 100644 --- a/lib/spinlock_debug.c +++ b/lib/spinlock_debug.c | |||
@@ -7,6 +7,7 @@ | |||
7 | */ | 7 | */ |
8 | 8 | ||
9 | #include <linux/spinlock.h> | 9 | #include <linux/spinlock.h> |
10 | #include <linux/nmi.h> | ||
10 | #include <linux/interrupt.h> | 11 | #include <linux/interrupt.h> |
11 | #include <linux/debug_locks.h> | 12 | #include <linux/debug_locks.h> |
12 | #include <linux/delay.h> | 13 | #include <linux/delay.h> |
@@ -117,6 +118,9 @@ static void __spin_lock_debug(spinlock_t *lock) | |||
117 | raw_smp_processor_id(), current->comm, | 118 | raw_smp_processor_id(), current->comm, |
118 | current->pid, lock); | 119 | current->pid, lock); |
119 | dump_stack(); | 120 | dump_stack(); |
121 | #ifdef CONFIG_SMP | ||
122 | trigger_all_cpu_backtrace(); | ||
123 | #endif | ||
120 | } | 124 | } |
121 | } | 125 | } |
122 | } | 126 | } |