diff options
author | Dmitry Adamushko <dmitry.adamushko@gmail.com> | 2007-05-08 00:33:06 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-08 11:15:17 -0700 |
commit | bd53f96ca54a21c07e7a0ae1886fa623d370b85f (patch) | |
tree | c908772406a055fcaa8a8742a36f61014a99b20a /drivers/pcmcia/pd6729.c | |
parent | 4953198b6ce07b008b0f1c2edd41c9d027a118b4 (diff) |
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 'drivers/pcmcia/pd6729.c')
0 files changed, 0 insertions, 0 deletions