From: Con Kolivas On runqueue time is used to elevate priority in schedule(). In the code it currently requeues tasks even if their priority is not elevated, which would end up placing them at the end of their runqueue array effectively delaying them instead of improving their priority. Bug spotted by Mike Galbraith This patch removes this requeueing. Signed-off-by: Con Kolivas Cc: Ingo Molnar Cc: Mike Galbraith Cc: Nick Piggin Signed-off-by: Andrew Morton --- kernel/sched.c | 3 +-- 1 files changed, 1 insertion(+), 2 deletions(-) diff -puN kernel/sched.c~sched-remove-on-runqueue-requeueing kernel/sched.c --- devel/kernel/sched.c~sched-remove-on-runqueue-requeueing 2006-02-27 20:58:43.000000000 -0800 +++ devel-akpm/kernel/sched.c 2006-02-27 20:58:43.000000000 -0800 @@ -3140,8 +3140,7 @@ go_idle: dequeue_task(next, array); next->prio = new_prio; enqueue_task(next, array); - } else - requeue_task(next, array); + } } next->sleep_type = SLEEP_NORMAL; switch_tasks: _