From: Frederic Weisbecker on
No need to disable preemption in the debug_atomic_* ops, as
we ensure interrupts are disabled already.

So let's use the __this_cpu_ops() rather than this_cpu_ops() that
enclose the ops in a preempt disabled section.

Signed-off-by: Frederic Weisbecker <fweisbec(a)gmail.com>
Cc: Peter Zijlstra <peterz(a)infradead.org>
---
kernel/lockdep_internals.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/lockdep_internals.h b/kernel/lockdep_internals.h
index 8d929c7..4f560cf 100644
--- a/kernel/lockdep_internals.h
+++ b/kernel/lockdep_internals.h
@@ -144,12 +144,12 @@ DECLARE_PER_CPU(struct lockdep_stats, lockdep_stats);

#define debug_atomic_inc(ptr) { \
WARN_ON_ONCE(!irqs_disabled()); \
- this_cpu_inc(lockdep_stats.ptr); \
+ __this_cpu_inc(lockdep_stats.ptr); \
}

#define debug_atomic_dec(ptr) { \
WARN_ON_ONCE(!irqs_disabled()); \
- this_cpu_dec(lockdep_stats.ptr); \
+ __this_cpu_dec(lockdep_stats.ptr); \
}

#define debug_atomic_read(ptr) ({ \
--
1.6.2.3

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo(a)vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/