From: Bharata B Rao Date: Thu, 28 Aug 2008 09:12:49 +0000 (+0530) Subject: sched: call resched_task() conditionally from new task wake up path X-Git-Tag: v2.6.28-rc1~725^2~2^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aec0a5142cb52aaa152d962d84a838e25d520742;p=pandora-kernel.git sched: call resched_task() conditionally from new task wake up path - During wake up of a new task, task_new_fair() can do a resched_task() on the current task. Later in the code path, check_preempt_curr() also ends up doing the same, which can be avoided. Check if TIF_NEED_RESCHED is already set for the current task. - task_new_fair() does a resched_task() on the current task unconditionally. This can be done only in case when child runs before the parent. So this is a small speedup. Signed-off-by: Bharata B Rao Acked-by: Peter Zijlstra Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed