aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched_fair.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2007-10-15 11:00:11 -0400
committerIngo Molnar <mingo@elte.hu>2007-10-15 11:00:11 -0400
commit94359f05cb7e1fed0deccc83ebc30a1175a9ae16 (patch)
treeb187343db9950f9396f832318d061106a9592d41 /kernel/sched_fair.c
parentdc1f31c90cfa067af6f7000db7a5383c7667ccba (diff)
sched: undo some of the recent changes
undo some of the recent changes that are not needed after all, such as last_min_vruntime. Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Diffstat (limited to 'kernel/sched_fair.c')
-rw-r--r--kernel/sched_fair.c13
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)