aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2008-02-29 15:21:01 -0500
committerIngo Molnar <mingo@elte.hu>2008-03-07 10:42:59 -0500
commit810b38179e9e4d4f57b4b733767bb08f8291a965 (patch)
tree91692de4fbd46879b29d803839b5bf7e25f30cd8 /kernel/sched.c
parentce4796d1e16cf3761dc2a02b8d588667d05b3078 (diff)
sched: retain vruntime
Kei Tokunaga reported an interactivity problem when moving tasks between control groups. Tasks would retain their old vruntime when moved between groups, this can cause funny lags. Re-set the vruntime on group move to fit within the new tree. Reported-by: Kei Tokunaga <tokunaga.keiich@jp.fujitsu.com> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index dcd553cc4ee8..0b949c4e73ad 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -7625,6 +7625,11 @@ void sched_move_task(struct task_struct *tsk)
7625 7625
7626 set_task_rq(tsk, task_cpu(tsk)); 7626 set_task_rq(tsk, task_cpu(tsk));
7627 7627
7628#ifdef CONFIG_FAIR_GROUP_SCHED
7629 if (tsk->sched_class->moved_group)
7630 tsk->sched_class->moved_group(tsk);
7631#endif
7632
7628 if (on_rq) { 7633 if (on_rq) {
7629 if (unlikely(running)) 7634 if (unlikely(running))
7630 tsk->sched_class->set_curr_task(rq); 7635 tsk->sched_class->set_curr_task(rq);