Commit:     119fe5e06800afc197781ebc8c2d8ca7d03497c8
Parent:     02e0431a3db554019b816936b597d618256b705d
Author:     Mike Galbraith <[EMAIL PROTECTED]>
AuthorDate: Mon Oct 15 17:00:07 2007 +0200
Committer:  Ingo Molnar <[EMAIL PROTECTED]>
CommitDate: Mon Oct 15 17:00:07 2007 +0200

    sched: fix SMP migration latencies
    fix SMP migration latencies: the vruntimes of different CPUs are
    at incompatible offsets so they have to be fixed up when migrating
    a task across CPUs.
    Signed-off-by: Mike Galbraith <[EMAIL PROTECTED]>
    Signed-off-by: Ingo Molnar <[EMAIL PROTECTED]>
    Signed-off-by: Peter Zijlstra <[EMAIL PROTECTED]>
    Reviewed-by: Thomas Gleixner <[EMAIL PROTECTED]>
 kernel/sched.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/kernel/sched.c b/kernel/sched.c
index 0f0cf37..4ad789d 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -992,6 +992,9 @@ void set_task_cpu(struct task_struct *p, unsigned int 
        if (p->se.block_start)
                p->se.block_start -= clock_offset;
+       if (likely(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

Reply via email to