diff options
author | Frederic Weisbecker <fweisbec@gmail.com> | 2010-05-03 22:47:25 -0400 |
---|---|---|
committer | Frederic Weisbecker <fweisbec@gmail.com> | 2010-05-03 23:37:28 -0400 |
commit | ba697f40dbb704956a4cf67a7845b538015a01ea (patch) | |
tree | 9ab6f1391bd45c52145d04b588e31c2f1abe0c53 /kernel/lockdep.c | |
parent | 0e417fe1f247bb3ac056ee04604332005c334fac (diff) |
lockdep: Provide off case for redundant_hardirqs_on increment
We forgot to provide a !CONFIG_DEBUG_LOCKDEP case for the
redundant_hardirqs_on stat handling.
Manage that in the headers with a new __debug_atomic_inc() helper.
Fixes:
kernel/lockdep.c:2306: error: 'lockdep_stats' undeclared (first use in this function)
kernel/lockdep.c:2306: error: (Each undeclared identifier is reported only once
kernel/lockdep.c:2306: error: for each function it appears in.)
Reported-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Diffstat (limited to 'kernel/lockdep.c')
-rw-r--r-- | kernel/lockdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/lockdep.c b/kernel/lockdep.c index 1b58a1bbcc87..9cf79858fd82 100644 --- a/kernel/lockdep.c +++ b/kernel/lockdep.c | |||
@@ -2303,7 +2303,7 @@ void trace_hardirqs_on_caller(unsigned long ip) | |||
2303 | * so this is racy by nature but loosing one hit | 2303 | * so this is racy by nature but loosing one hit |
2304 | * in a stat is not a big deal. | 2304 | * in a stat is not a big deal. |
2305 | */ | 2305 | */ |
2306 | this_cpu_inc(lockdep_stats.redundant_hardirqs_on); | 2306 | __debug_atomic_inc(redundant_hardirqs_on); |
2307 | return; | 2307 | return; |
2308 | } | 2308 | } |
2309 | /* we'll do an OFF -> ON transition: */ | 2309 | /* we'll do an OFF -> ON transition: */ |