Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=8bc6767acb3236e0345e99cf198168e60e7ae456
Commit:     8bc6767acb3236e0345e99cf198168e60e7ae456
Parent:     3e3e13f399ac8060a20d14d210a28dc02dda372e
Author:     Ingo Molnar <[EMAIL PROTECTED]>
AuthorDate: Fri Nov 9 22:39:39 2007 +0100
Committer:  Ingo Molnar <[EMAIL PROTECTED]>
CommitDate: Fri Nov 9 22:39:39 2007 +0100

    sched: wakeup preemption fix
    
    wakeup preemption fix: do not make it dependent on p->prio.
    Preemption purely depends on ->vruntime.
    
    This improves preemption in mixed-nice-level workloads.
    
    Signed-off-by: Ingo Molnar <[EMAIL PROTECTED]>
---
 kernel/sched_fair.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c
index fbcb426..a3badf5 100644
--- a/kernel/sched_fair.c
+++ b/kernel/sched_fair.c
@@ -863,10 +863,8 @@ static void check_preempt_wakeup(struct rq *rq, struct 
task_struct *p)
                if (unlikely(se->load.weight != NICE_0_LOAD))
                        gran = calc_delta_fair(gran, &se->load);
 
-               if (delta > gran) {
-                       if (p->prio < curr->prio)
-                               resched_task(curr);
-               }
+               if (delta > gran)
+                       resched_task(curr);
        }
 }
 
-
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