diff options
-rw-r--r-- | kernel/sched.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 0f0cf374c775..4ad789d268fe 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -992,6 +992,9 @@ void set_task_cpu(struct task_struct *p, unsigned int new_cpu) | |||
992 | if (p->se.block_start) | 992 | if (p->se.block_start) |
993 | p->se.block_start -= clock_offset; | 993 | p->se.block_start -= clock_offset; |
994 | #endif | 994 | #endif |
995 | if (likely(new_rq->cfs.min_vruntime)) | ||
996 | p->se.vruntime -= old_rq->cfs.min_vruntime - | ||
997 | new_rq->cfs.min_vruntime; | ||
995 | 998 | ||
996 | __set_task_cpu(p, new_cpu); | 999 | __set_task_cpu(p, new_cpu); |
997 | } | 1000 | } |