diff options
author | Frederic Weisbecker <fweisbec@gmail.com> | 2010-05-03 22:52:48 -0400 |
---|---|---|
committer | Frederic Weisbecker <fweisbec@gmail.com> | 2010-05-03 23:38:12 -0400 |
commit | fa9a97dec611c5356301645d576b523ce3919eba (patch) | |
tree | 4ce76bb7be82f1909258b601f1b4050dcc784e35 | |
parent | ba697f40dbb704956a4cf67a7845b538015a01ea (diff) |
lockdep: Actually _dec_ in debug_atomic_dec
Fix a silly copy-paste mistake that was making debug_atomic_dec use
this_cpu_inc instead of this_cpu_dec.
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
-rw-r--r-- | kernel/lockdep_internals.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/lockdep_internals.h b/kernel/lockdep_internals.h index 7de27a80f802..8d929c717d3e 100644 --- a/kernel/lockdep_internals.h +++ b/kernel/lockdep_internals.h | |||
@@ -149,7 +149,7 @@ DECLARE_PER_CPU(struct lockdep_stats, lockdep_stats); | |||
149 | 149 | ||
150 | #define debug_atomic_dec(ptr) { \ | 150 | #define debug_atomic_dec(ptr) { \ |
151 | WARN_ON_ONCE(!irqs_disabled()); \ | 151 | WARN_ON_ONCE(!irqs_disabled()); \ |
152 | this_cpu_inc(lockdep_stats.ptr); \ | 152 | this_cpu_dec(lockdep_stats.ptr); \ |
153 | } | 153 | } |
154 | 154 | ||
155 | #define debug_atomic_read(ptr) ({ \ | 155 | #define debug_atomic_read(ptr) ({ \ |