Skip to content

Commit

Permalink
sched: resched task in task_new_fair()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ingo Molnar committed Oct 15, 2007
1 parent 44142fa commit bb61c21
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kernel/sched_fair.c
Original file line number Diff line number Diff line change
Expand Up @@ -1191,6 +1191,7 @@ static void task_new_fair(struct rq *rq, struct task_struct *p)
se->wait_runtime = -(sched_granularity(cfs_rq) / 2);

__enqueue_entity(cfs_rq, se);
resched_task(rq->curr);
}

#ifdef CONFIG_FAIR_GROUP_SCHED
Expand Down

0 comments on commit bb61c21

Please sign in to comment.