diff options
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index deeb1f8e0c30..63e0971c8fbb 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -4550,10 +4550,7 @@ asmlinkage long sys_sched_yield(void) | |||
4550 | struct rq *rq = this_rq_lock(); | 4550 | struct rq *rq = this_rq_lock(); |
4551 | 4551 | ||
4552 | schedstat_inc(rq, yld_cnt); | 4552 | schedstat_inc(rq, yld_cnt); |
4553 | if (unlikely(rq->nr_running == 1)) | 4553 | current->sched_class->yield_task(rq, current); |
4554 | schedstat_inc(rq, yld_act_empty); | ||
4555 | else | ||
4556 | current->sched_class->yield_task(rq, current); | ||
4557 | 4554 | ||
4558 | /* | 4555 | /* |
4559 | * Since we are going to call schedule() anyway, there's | 4556 | * Since we are going to call schedule() anyway, there's |