|
@@ -992,6 +992,9 @@ void set_task_cpu(struct task_struct *p, unsigned int new_cpu)
|
|
if (p->se.block_start)
|
|
if (p->se.block_start)
|
|
p->se.block_start -= clock_offset;
|
|
p->se.block_start -= clock_offset;
|
|
#endif
|
|
#endif
|
|
|
|
+ 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);
|
|
__set_task_cpu(p, new_cpu);
|
|
}
|
|
}
|