Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=6cbf1c126cf6a727287d61b122fde00a8b827bfe
Commit:     6cbf1c126cf6a727287d61b122fde00a8b827bfe
Parent:     2bacec8c318ca0418c0ee9ac662ee44207765dd4
Author:     Ingo Molnar <[EMAIL PROTECTED]>
AuthorDate: Tue Dec 18 15:21:13 2007 +0100
Committer:  Ingo Molnar <[EMAIL PROTECTED]>
CommitDate: Tue Dec 18 15:21:13 2007 +0100

    sched: do not hurt SCHED_BATCH on wakeup
    
    measurements by Yanmin Zhang have shown that SCHED_BATCH tasks benefit
    if they run the same place_entity() logic as SCHED_OTHER tasks - so
    uniformize behavior in this area.
    
    Signed-off-by: Ingo Molnar <[EMAIL PROTECTED]>
---
 kernel/sched_fair.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c
index c33f0ce..da7c061 100644
--- a/kernel/sched_fair.c
+++ b/kernel/sched_fair.c
@@ -511,8 +511,7 @@ 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) && entity_is_task(se) &&
-                               task_of(se)->policy != SCHED_BATCH)
+               if (sched_feat(NEW_FAIR_SLEEPERS) && entity_is_task(se))
                        vruntime -= sysctl_sched_latency;
 
                /* ensure we never gain time by being placed backwards. */
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to