diff options
Diffstat (limited to 'kernel/sched_fair.c')
-rw-r--r-- | kernel/sched_fair.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c index 0228de186503..62a9ee8db13e 100644 --- a/kernel/sched_fair.c +++ b/kernel/sched_fair.c | |||
@@ -480,14 +480,9 @@ place_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, int initial) | |||
480 | vruntime += __sched_vslice(cfs_rq->nr_running + 1); | 480 | vruntime += __sched_vslice(cfs_rq->nr_running + 1); |
481 | 481 | ||
482 | if (!initial) { | 482 | if (!initial) { |
483 | if (sched_feat(NEW_FAIR_SLEEPERS)) { | 483 | if (sched_feat(NEW_FAIR_SLEEPERS)) |
484 | s64 latency = cfs_rq->min_vruntime - se->vruntime; | 484 | vruntime -= sysctl_sched_latency; |
485 | if (latency < 0 || !cfs_rq->nr_running) | 485 | |
486 | latency = 0; | ||
487 | else | ||
488 | latency = min_t(s64, latency, sysctl_sched_latency); | ||
489 | vruntime -= latency; | ||
490 | } | ||
491 | vruntime = max(vruntime, se->vruntime); | 486 | vruntime = max(vruntime, se->vruntime); |
492 | } | 487 | } |
493 | 488 | ||
@@ -531,8 +526,6 @@ dequeue_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, int sleep) | |||
531 | se->block_start = rq_of(cfs_rq)->clock; | 526 | se->block_start = rq_of(cfs_rq)->clock; |
532 | } | 527 | } |
533 | #endif | 528 | #endif |
534 | /* se->vruntime = entity_key(cfs_rq, se); */ | ||
535 | se->last_min_vruntime = cfs_rq->min_vruntime; | ||
536 | } | 529 | } |
537 | 530 | ||
538 | if (se != cfs_rq->curr) | 531 | if (se != cfs_rq->curr) |