diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2008-03-19 11:43:36 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-19 19:44:59 +0200 |
commit | 112f53f5d700589de741dca67c77439e96ea94a7 (patch) | |
tree | 1faeaa6a25717b80c8ce0a51a9bf7f5f32d5ac08 /kernel/sched_fair.c | |
parent | sched: add new set_cpus_allowed_ptr function (diff) | |
download | linux-112f53f5d700589de741dca67c77439e96ea94a7.tar.xz linux-112f53f5d700589de741dca67c77439e96ea94a7.zip |
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 '')
-rw-r--r-- | kernel/sched_fair.c | 7 |
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) if (!initial) { /* sleeps upto a single latency don't count. */ if (sched_feat(NEW_FAIR_SLEEPERS)) { - vruntime -= calc_delta_fair(sysctl_sched_latency, - &cfs_rq->load); + if (sched_feat(NORMALIZED_SLEEPER)) + vruntime -= calc_delta_fair(sysctl_sched_latency, + &cfs_rq->load); + else + vruntime -= sysctl_sched_latency; } /* ensure we never gain time by being placed backwards. */ |