From: Peter Zijlstra Date: Fri, 27 Nov 2009 16:32:46 +0000 (+0100) Subject: sched: Sanitize fork() handling X-Git-Tag: v2.6.33-rc1~298^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd29fe6f2637cc2ccbda5ac65f5332d6bf5fa3c6;p=pandora-kernel.git sched: Sanitize fork() handling Currently we try to do task placement in wake_up_new_task() after we do the load-balance pass in sched_fork(). This yields complicated semantics in that we have to deal with tasks on different RQs and the set_task_cpu() calls in copy_process() and sched_fork() Rename ->task_new() to ->task_fork() and call it from sched_fork() before the balancing, this gives the policy a clear point to place the task. Signed-off-by: Peter Zijlstra LKML-Reference: Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed