From: Dmitry Adamushko Date: Tue, 8 May 2007 07:33:06 +0000 (-0700) Subject: sched: redundant reschedule when set_user_nice() boosts a prio of a task from the... X-Git-Tag: v2.6.22-rc1~576 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd53f96ca54a21c07e7a0ae1886fa623d370b85f;p=pandora-kernel.git 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 Cc: Con Kolivas Acked-by: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed