Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=bb61c210835db95b0e9fb612a316422e7cc675e3 Commit: bb61c210835db95b0e9fb612a316422e7cc675e3 Parent: 44142fac3446d08c08c5d717ec11d50a737e8640 Author: Ingo Molnar <[EMAIL PROTECTED]> AuthorDate: Mon Oct 15 17:00:02 2007 +0200 Committer: Ingo Molnar <[EMAIL PROTECTED]> CommitDate: Mon Oct 15 17:00:02 2007 +0200
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 <[EMAIL PROTECTED]> Signed-off-by: Peter Zijlstra <[EMAIL PROTECTED]> Signed-off-by: Mike Galbraith <[EMAIL PROTECTED]> Reviewed-by: Thomas Gleixner <[EMAIL PROTECTED]> --- kernel/sched_fair.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c index 67c67a8..0990b20 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) se->wait_runtime = -(sched_granularity(cfs_rq) / 2); __enqueue_entity(cfs_rq, se); + resched_task(rq->curr); } #ifdef CONFIG_FAIR_GROUP_SCHED - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html