sched: fix sysctl_sched_child_runs_first flag
authorIngo Molnar <mingo@elte.hu>
Mon, 15 Oct 2007 15:00:01 +0000 (17:00 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 15 Oct 2007 15:00:01 +0000 (17:00 +0200)
commit44142fac3446d08c08c5d717ec11d50a737e8640
tree2d1a97a5512e869416b90b32f4e79b11cdd6acf6
parent23fd50450a34f2558070ceabb0bfebc1c9604af5
sched: fix sysctl_sched_child_runs_first flag

fix the sched_child_runs_first flag: always call into ->task_new()
if we are on the same CPU, as SCHED_OTHER tasks depend on it for
correct initial setup.

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>
kernel/sched.c