diff options
Diffstat (limited to 'kernel/sched_fair.c')
-rw-r--r-- | kernel/sched_fair.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c index 556942cf2606..abd65ed9f2a5 100644 --- a/kernel/sched_fair.c +++ b/kernel/sched_fair.c | |||
@@ -877,7 +877,10 @@ static int cfs_rq_best_prio(struct cfs_rq *cfs_rq) | |||
877 | if (!cfs_rq->nr_running) | 877 | if (!cfs_rq->nr_running) |
878 | return MAX_PRIO; | 878 | return MAX_PRIO; |
879 | 879 | ||
880 | curr = __pick_next_entity(cfs_rq); | 880 | curr = cfs_rq->curr; |
881 | if (!curr) | ||
882 | curr = __pick_next_entity(cfs_rq); | ||
883 | |||
881 | p = task_of(curr); | 884 | p = task_of(curr); |
882 | 885 | ||
883 | return p->prio; | 886 | return p->prio; |