From: Ingo Molnar Date: Mon, 15 Oct 2007 15:00:11 +0000 (+0200) Subject: sched: fix sched_fork() X-Git-Tag: v2.6.24-rc1~1289^2~70 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=02e4bac2a5b097e23d757bf2953740b3d51b7976;p=linux.git sched: fix sched_fork() fix sched_fork(): large latencies at new task creation time because the ->vruntime was not fixed up cross-CPU, if the parent got migrated after the child's CPU got set up. Signed-off-by: Ingo Molnar Signed-off-by: Peter Zijlstra Reviewed-by: Thomas Gleixner --- diff --git a/kernel/sched.c b/kernel/sched.c index 744bd5050f10..36484da963f9 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -1657,7 +1657,7 @@ void sched_fork(struct task_struct *p, int clone_flags) #ifdef CONFIG_SMP cpu = sched_balance_self(cpu, SD_BALANCE_FORK); #endif - __set_task_cpu(p, cpu); + set_task_cpu(p, cpu); /* * Make sure we do not leak PI boosting priority to the child: