From: Amit K. Arora Date: Tue, 30 Sep 2008 11:45:39 +0000 (+0530) Subject: sched: minor optimizations in wake_affine and select_task_rq_fair X-Git-Tag: v2.6.28-rc1~725^2~2^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64b9e0294d24a4204232e13e01630b0690e48d61;p=pandora-kernel.git sched: minor optimizations in wake_affine and select_task_rq_fair This patch does following: o Removes unused variable and argument "rq". o Optimizes one of the "if" conditions in wake_affine() - i.e. if "balanced" is true, we need not do rest of the calculations in the condition. o If this cpu is same as the previous cpu (on which woken up task was running when it went to sleep), no need to call wake_affine at all. Signed-off-by: Amit K Arora Acked-by: Peter Zijlstra Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed