diff options
-rw-r--r-- | kernel/sched.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 87665132cec1..5dbc42694477 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -4053,6 +4053,9 @@ asmlinkage long sys_sched_yield(void) | |||
4053 | 4053 | ||
4054 | static inline void __cond_resched(void) | 4054 | static inline void __cond_resched(void) |
4055 | { | 4055 | { |
4056 | #ifdef CONFIG_DEBUG_SPINLOCK_SLEEP | ||
4057 | __might_sleep(__FILE__, __LINE__); | ||
4058 | #endif | ||
4056 | /* | 4059 | /* |
4057 | * The BKS might be reacquired before we have dropped | 4060 | * The BKS might be reacquired before we have dropped |
4058 | * PREEMPT_ACTIVE, which could trigger a second | 4061 | * PREEMPT_ACTIVE, which could trigger a second |