sched: Fix __schedule_bug() output when called from an interrupt
[linux-flexiantxendom0-3.2.10.git] / kernel / lockdep_internals.h
index 7de27a8..4f560cf 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_inc(lockdep_stats.ptr);                        \
+       __this_cpu_dec(lockdep_stats.ptr);                      \
 }
 
 #define debug_atomic_read(ptr)         ({                              \