mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
[PATCH] sched: remove on runqueue requeueing
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 <[email protected]> This patch removes this requeueing. Signed-off-by: Con Kolivas <[email protected]> Acked-by: Ingo Molnar <[email protected]> Cc: Mike Galbraith <[email protected]> Cc: Nick Piggin <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
5138930e6a
commit
7c4bb1f9b3
1 changed files with 1 additions and 2 deletions
|
|
@ -3023,8 +3023,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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue