Skip to content

Commit

Permalink
lockdep: Actually _dec_ in debug_atomic_dec
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Frederic Weisbecker committed May 4, 2010
1 parent ba697f4 commit fa9a97d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/lockdep_internals.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) ({ \
Expand Down

0 comments on commit fa9a97d

Please sign in to comment.