sched: remove condition from set_task_cpu()
[deliverable/linux.git] / kernel / sched.c
index 213294fdcd0f3ce42da7d32f4baf6085397d0f4a..c779bf9d3552123b15d82360895883d502e9205b 100644 (file)
@@ -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);
 }
This page took 0.026491 seconds and 5 git commands to generate.