diff options
| author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2008-02-29 15:21:01 -0500 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2008-03-07 10:42:59 -0500 |
| commit | 810b38179e9e4d4f57b4b733767bb08f8291a965 (patch) | |
| tree | 91692de4fbd46879b29d803839b5bf7e25f30cd8 /include/linux | |
| parent | ce4796d1e16cf3761dc2a02b8d588667d05b3078 (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 'include/linux')
| -rw-r--r-- | include/linux/sched.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 9ae4030067a9..11d8e9a74eff 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
| @@ -899,6 +899,10 @@ struct sched_class { | |||
| 899 | int running); | 899 | int running); |
| 900 | void (*prio_changed) (struct rq *this_rq, struct task_struct *task, | 900 | void (*prio_changed) (struct rq *this_rq, struct task_struct *task, |
| 901 | int oldprio, int running); | 901 | int oldprio, int running); |
| 902 | |||
| 903 | #ifdef CONFIG_FAIR_GROUP_SCHED | ||
| 904 | void (*moved_group) (struct task_struct *p); | ||
| 905 | #endif | ||
| 902 | }; | 906 | }; |
| 903 | 907 | ||
| 904 | struct load_weight { | 908 | struct load_weight { |
