Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=785c29ef9573d98b31493c9a68c3589449082108
Commit:     785c29ef9573d98b31493c9a68c3589449082108
Parent:     8465e792e82c567b80358e38732164b770ed4b7f
Author:     Ingo Molnar <[EMAIL PROTECTED]>
AuthorDate: Mon Oct 15 17:00:11 2007 +0200
Committer:  Ingo Molnar <[EMAIL PROTECTED]>
CommitDate: Mon Oct 15 17:00:11 2007 +0200

    sched: remove condition from set_task_cpu()
    
    remove condition from set_task_cpu(). Now that ->vruntime
    is not global anymore, it should (and does) work fine without
    it too.
    
    Signed-off-by: Ingo Molnar <[EMAIL PROTECTED]>
    Signed-off-by: Peter Zijlstra <[EMAIL PROTECTED]>
---
 kernel/sched.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/kernel/sched.c b/kernel/sched.c
index 213294f..c779bf9 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -1052,9 +1052,7 @@ void set_task_cpu(struct task_struct *p, unsigned int 
new_cpu)
        if (p->se.block_start)
                p->se.block_start -= clock_offset;
 #endif
-       if (likely(new_rq->cfs.min_vruntime))
-               p->se.vruntime -= old_rq->cfs.min_vruntime -
-                                               new_rq->cfs.min_vruntime;
+       p->se.vruntime -= old_rq->cfs.min_vruntime - new_rq->cfs.min_vruntime;
 
        __set_task_cpu(p, new_cpu);
 }
-
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