summaryrefslogtreecommitdiff
path: root/kernel/sched.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2007-10-15 17:00:11 +0200
committerIngo Molnar <mingo@elte.hu>2007-10-15 17:00:11 +0200
commit785c29ef9573d98b31493c9a68c3589449082108 (patch)
treeba4d54cd9f57f5f4de7e0479977d1335b3458b35 /kernel/sched.c
parent8465e792e82c567b80358e38732164b770ed4b7f (diff)
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 <mingo@elte.hu> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 213294fdcd0f..c779bf9d3552 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);
}