lockdep: Actually _dec_ in debug_atomic_dec
authorFrederic Weisbecker <fweisbec@gmail.com>
Tue, 4 May 2010 02:52:48 +0000 (04:52 +0200)
committerFrederic Weisbecker <fweisbec@gmail.com>
Tue, 4 May 2010 03:38:12 +0000 (05:38 +0200)
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>
kernel/lockdep_internals.h

index 7de27a80f802648e55a5796039a814d074999ccd..8d929c717d3e6ec321ad0b50d4c65f9a965a4588 100644 (file)
@@ -149,7 +149,7 @@ DECLARE_PER_CPU(struct lockdep_stats, lockdep_stats);
 
 #define debug_atomic_dec(ptr)                  {               \
        WARN_ON_ONCE(!irqs_disabled());                         \
-       this_cpu_inc(lockdep_stats.ptr);                        \
+       this_cpu_dec(lockdep_stats.ptr);                        \
 }
 
 #define debug_atomic_read(ptr)         ({                              \