diff options
author | Dmitry Adamushko <dmitry.adamushko@gmail.com> | 2007-05-08 07:33:06 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-08 18:15:17 (GMT) |
commit | bd53f96ca54a21c07e7a0ae1886fa623d370b85f (patch) | |
tree | c908772406a055fcaa8a8742a36f61014a99b20a /net/key/Makefile | |
parent | 4953198b6ce07b008b0f1c2edd41c9d027a118b4 (diff) | |
download | linux-fsl-qoriq-bd53f96ca54a21c07e7a0ae1886fa623d370b85f.tar.xz |
sched: redundant reschedule when set_user_nice() boosts a prio of a task from the "expired" array
- Make TASK_PREEMPTS_CURR(task, rq) return "true" only if the task's prio
is higher than the current's one and the task is in the "active" array.
This ensures we don't make redundant resched_task() calls when the task
is in the "expired" array (as may happen now in set_user_prio(),
rt_mutex_setprio() and pull_task() ) ;
- generalise conditions for a call to resched_task() in set_user_nice(),
rt_mutex_setprio() and sched_setscheduler()
Signed-off-by: Dmitry Adamushko <dmitry.adamushko@gmail.com>
Cc: Con Kolivas <kernel@kolivas.org>
Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'net/key/Makefile')
0 files changed, 0 insertions, 0 deletions