diff options
author | Ingo Molnar <mingo@elte.hu> | 2007-10-15 11:00:04 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2007-10-15 11:00:04 -0400 |
commit | 6cb58195143b55d4c427d92f8425bec2b0d9c56c (patch) | |
tree | 80727312684fe2be27c2c6202a42fff1915f9599 /kernel/sched_fair.c | |
parent | bf5c91ba8c629b84413c761f529627195fd0a935 (diff) |
sched: optimize vruntime based scheduling
optimize vruntime based scheduling.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Mike Galbraith <efault@gmx.de>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/sched_fair.c')
-rw-r--r-- | kernel/sched_fair.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c index a566a4558167..7041dc697855 100644 --- a/kernel/sched_fair.c +++ b/kernel/sched_fair.c | |||
@@ -336,6 +336,9 @@ __update_curr(struct cfs_rq *cfs_rq, struct sched_entity *curr, | |||
336 | } | 336 | } |
337 | curr->vruntime += delta_exec_weighted; | 337 | curr->vruntime += delta_exec_weighted; |
338 | 338 | ||
339 | if (!sched_feat(FAIR_SLEEPERS)) | ||
340 | return; | ||
341 | |||
339 | if (unlikely(!load)) | 342 | if (unlikely(!load)) |
340 | return; | 343 | return; |
341 | 344 | ||