lockdep: No need to disable preemption in debug atomic ops
[firefly-linux-kernel-4.4.55.git] / kernel / lockdep_internals.h
index 8d929c717d3e6ec321ad0b50d4c65f9a965a4588..4f560cfedc8fd038c4dd09bfb590a9932fbd1193 100644 (file)
@@ -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)         ({                              \