sched: Generalize sleep inside spinlock detection
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / include / linux / kernel.h
index fb0e7329fee1a5ad370b2e5284ceb681670c7395..24b489f6659268e401a63f90ed05cb41d8115fbd 100644 (file)
@@ -121,7 +121,7 @@ extern int _cond_resched(void);
 # define might_resched() do { } while (0)
 #endif
 
-#ifdef CONFIG_DEBUG_SPINLOCK_SLEEP
+#ifdef CONFIG_DEBUG_ATOMIC_SLEEP
   void __might_sleep(const char *file, int line, int preempt_offset);
 /**
  * might_sleep - annotation for functions that can sleep