aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2007-10-15 11:00:02 -0400
committerIngo Molnar <mingo@elte.hu>2007-10-15 11:00:02 -0400
commitbb61c210835db95b0e9fb612a316422e7cc675e3 (patch)
tree47415f8860a4e112fb4158c8724ee52786d0c928
parent44142fac3446d08c08c5d717ec11d50a737e8640 (diff)
sched: resched task in task_new_fair()
to get full child-runs-first semantics make sure the parent is rescheduled. Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Signed-off-by: Mike Galbraith <efault@gmx.de> Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r--kernel/sched_fair.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c
index 67c67a87146e..0990b20fdcf5 100644
--- a/kernel/sched_fair.c
+++ b/kernel/sched_fair.c
@@ -1191,6 +1191,7 @@ static void task_new_fair(struct rq *rq, struct task_struct *p)
1191 se->wait_runtime = -(sched_granularity(cfs_rq) / 2); 1191 se->wait_runtime = -(sched_granularity(cfs_rq) / 2);
1192 1192
1193 __enqueue_entity(cfs_rq, se); 1193 __enqueue_entity(cfs_rq, se);
1194 resched_task(rq->curr);
1194} 1195}
1195 1196
1196#ifdef CONFIG_FAIR_GROUP_SCHED 1197#ifdef CONFIG_FAIR_GROUP_SCHED