Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 190986
b: refs/heads/master
c: 913769f
h: refs/heads/master
v: v3
  • Loading branch information
Frederic Weisbecker committed Apr 30, 2010
1 parent 6c1885a commit f309778
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8795d7717c467bea7b0a0649d44a258e09f34db2
refs/heads/master: 913769f24eadcd38a936ffae41d9b4895ec02e43
10 changes: 2 additions & 8 deletions trunk/kernel/lockdep_internals.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,19 +140,13 @@ struct lockdep_stats {
DECLARE_PER_CPU(struct lockdep_stats, lockdep_stats);

#define debug_atomic_inc(ptr) { \
struct lockdep_stats *__cpu_lockdep_stats; \
\
WARN_ON_ONCE(!irqs_disabled()); \
__cpu_lockdep_stats = &__get_cpu_var(lockdep_stats); \
__cpu_lockdep_stats->ptr++; \
this_cpu_inc(lockdep_stats.ptr); \
}

#define debug_atomic_dec(ptr) { \
struct lockdep_stats *__cpu_lockdep_stats; \
\
WARN_ON_ONCE(!irqs_disabled()); \
__cpu_lockdep_stats = &__get_cpu_var(lockdep_stats); \
__cpu_lockdep_stats->ptr--; \
this_cpu_inc(lockdep_stats.ptr); \
}

#define debug_atomic_read(ptr) ({ \
Expand Down

0 comments on commit f309778

Please sign in to comment.