From: Venkatesh Pallipadi Date: Wed, 2 Mar 2011 00:28:21 +0000 (-0800) Subject: sched: Resched proper CPU on yield_to() X-Git-Tag: v2.6.39-rc1~509^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d1cafd8b56ea726c10a5a104de57cc3ed8fa953;p=pandora-kernel.git sched: Resched proper CPU on yield_to() yield_to_task_fair() has code to resched the CPU of yielding task when the intention is to resched the CPU of the task that is being yielded to. Change here fixes the problem and also makes the resched conditional on rq != p_rq. Signed-off-by: Venkatesh Pallipadi Reviewed-by: Rik van Riel Signed-off-by: Peter Zijlstra LKML-Reference: <1299025701-22168-1-git-send-email-venki@google.com> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed