diff options
-rw-r--r-- | kernel/sched.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 0c5ebf59b8bc..5f102e6c7a4c 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -3547,7 +3547,7 @@ need_resched_nonpreemptible: | |||
3547 | } | 3547 | } |
3548 | } | 3548 | } |
3549 | next->sleep_type = SLEEP_NORMAL; | 3549 | next->sleep_type = SLEEP_NORMAL; |
3550 | if (dependent_sleeper(cpu, rq, next)) | 3550 | if (rq->nr_running == 1 && dependent_sleeper(cpu, rq, next)) |
3551 | next = rq->idle; | 3551 | next = rq->idle; |
3552 | switch_tasks: | 3552 | switch_tasks: |
3553 | if (next == rq->idle) | 3553 | if (next == rq->idle) |