Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 785c29ef authored by Ingo Molnar's avatar Ingo Molnar
Browse files

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: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
parent 8465e792
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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);
}