mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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]>
This commit is contained in:
parent
8465e792e8
commit
785c29ef95
1 changed files with 1 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue