sched: Generalize sleep inside spinlock detection
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / kernel / sched.c
index 90ad7cf2b2906d9583d98feac6673264bad49973..a5f318b8d659af5b8343f2f8d33d6c940b95715b 100644 (file)
@@ -8018,7 +8018,7 @@ void __init sched_init(void)
        scheduler_running = 1;
 }
 
-#ifdef CONFIG_DEBUG_SPINLOCK_SLEEP
+#ifdef CONFIG_DEBUG_ATOMIC_SLEEP
 static inline int preempt_count_equals(int preempt_offset)
 {
        int nested = (preempt_count() & ~PREEMPT_ACTIVE) + rcu_preempt_depth();