sched: fix: move the CPU check into ->task_new_fair()
authorIngo Molnar <mingo@elte.hu>
Mon, 15 Oct 2007 15:00:14 +0000 (17:00 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 15 Oct 2007 15:00:14 +0000 (17:00 +0200)
commit00bf7bfc2eaf775b634774e9ec435d720b6ecee7
tree1f816516361276a56b9dee6b39e90361dc3468be
parent0702e3ebc1e42576a04d29f8adacf13be825b800
sched: fix: move the CPU check into ->task_new_fair()

noticed by Peter Zijlstra:

fix: move the CPU check into ->task_new_fair(), this way we
can call place_entity() and get child ->vruntime right at
initial wakeup time.

(without this there can be large latencies)

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
kernel/sched.c
kernel/sched_fair.c