]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8fc965749a7a89e0dd480414958957d98591c1c2
tree1f816516361276a56b9dee6b39e90361dc3468be
parentc9286a462e7a0cdbfba5b6c76a4e0b8229eadccd
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