aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched_fair.c
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2008-03-19 06:43:36 -0400
committerIngo Molnar <mingo@elte.hu>2008-04-19 13:44:59 -0400
commit112f53f5d700589de741dca67c77439e96ea94a7 (patch)
tree1faeaa6a25717b80c8ce0a51a9bf7f5f32d5ac08 /kernel/sched_fair.c
parentcd8ba7cd9be0192348c2836cb6645d9b2cd2bfd2 (diff)
sched: old sleeper bonus
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched_fair.c')
-rw-r--r--kernel/sched_fair.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c
index 290cf770b712..022e036f2c3e 100644
--- a/kernel/sched_fair.c
+++ b/kernel/sched_fair.c
@@ -501,8 +501,11 @@ place_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, int initial)
501 if (!initial) { 501 if (!initial) {
502 /* sleeps upto a single latency don't count. */ 502 /* sleeps upto a single latency don't count. */
503 if (sched_feat(NEW_FAIR_SLEEPERS)) { 503 if (sched_feat(NEW_FAIR_SLEEPERS)) {
504 vruntime -= calc_delta_fair(sysctl_sched_latency, 504 if (sched_feat(NORMALIZED_SLEEPER))
505 &cfs_rq->load); 505 vruntime -= calc_delta_fair(sysctl_sched_latency,
506 &cfs_rq->load);
507 else
508 vruntime -= sysctl_sched_latency;
506 } 509 }
507 510
508 /* ensure we never gain time by being placed backwards. */ 511 /* ensure we never gain time by being placed backwards. */