sched: Fix task priority bug
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Fri, 4 Dec 2009 08:59:02 +0000 (09:59 +0100)
committerArve Hjønnevåg <arve@android.com>
Tue, 15 Dec 2009 04:10:19 +0000 (20:10 -0800)
commit6a6dd939723e7649a8b1fe94b4ef74e04d5206a2
tree46de4edf9cf61e307217df025bf3195004fcf7a4
parent5ae7fdcbeb4413a060ebc4519995b274e2997dc3
sched: Fix task priority bug

83f9ac removed a call to effective_prio() in wake_up_new_task(), which
leads to tasks running at MAX_PRIO.

This is caused by the idle thread being set to MAX_PRIO before forking
off init. O(1) used that to make sure idle was always preempted, CFS
uses check_preempt_curr_idle() for that so we can savely remove this bit
of legacy code.

Reported-by: Mike Galbraith <efault@gmx.de>
Tested-by: Mike Galbraith <efault@gmx.de>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <1259754383.4003.610.camel@laptop>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched.c