From 785c29ef9573d98b31493c9a68c3589449082108 Mon Sep 17 00:00:00 2001 From: Ingo Molnar Date: Mon, 15 Oct 2007 17:00:11 +0200 Subject: [PATCH] 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 Signed-off-by: Peter Zijlstra --- kernel/sched.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/kernel/sched.c b/kernel/sched.c index 213294fdcd0..c779bf9d355 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -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); } -- 2.46.0