Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 190988
b: refs/heads/master
c: ba697f4
h: refs/heads/master
v: v3
  • Loading branch information
Frederic Weisbecker committed May 4, 2010
1 parent f50d8f7 commit a41f774
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 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: 0e417fe1f247bb3ac056ee04604332005c334fac
refs/heads/master: ba697f40dbb704956a4cf67a7845b538015a01ea
2 changes: 1 addition & 1 deletion trunk/kernel/lockdep.c
Original file line number Diff line number Diff line change
Expand Up @@ -2303,7 +2303,7 @@ void trace_hardirqs_on_caller(unsigned long ip)
* so this is racy by nature but loosing one hit
* in a stat is not a big deal.
*/
this_cpu_inc(lockdep_stats.redundant_hardirqs_on);
__debug_atomic_inc(redundant_hardirqs_on);
return;
}
/* we'll do an OFF -> ON transition: */
Expand Down
4 changes: 4 additions & 0 deletions trunk/kernel/lockdep_internals.h
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ struct lockdep_stats {

DECLARE_PER_CPU(struct lockdep_stats, lockdep_stats);

#define __debug_atomic_inc(ptr) \
this_cpu_inc(lockdep_stats.ptr);

#define debug_atomic_inc(ptr) { \
WARN_ON_ONCE(!irqs_disabled()); \
this_cpu_inc(lockdep_stats.ptr); \
Expand All @@ -160,6 +163,7 @@ DECLARE_PER_CPU(struct lockdep_stats, lockdep_stats);
__total; \
})
#else
# define __debug_atomic_inc(ptr) do { } while (0)
# define debug_atomic_inc(ptr) do { } while (0)
# define debug_atomic_dec(ptr) do { } while (0)
# define debug_atomic_read(ptr) 0
Expand Down

0 comments on commit a41f774

Please sign in to comment.