]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - kernel/lockdep_internals.h
lockdep: Provide off case for redundant_hardirqs_on increment
[karo-tx-linux.git] / kernel / lockdep_internals.h
index 2b174762fa0e9d7d86c968ab284e9dbed52a4afd..7de27a80f802648e55a5796039a814d074999ccd 100644 (file)
@@ -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);                        \
@@ -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