From: Venkatesh Pallipadi Date: Thu, 14 Apr 2011 01:21:09 +0000 (-0700) Subject: sched: Make set_*_buddy() work on non-task entities X-Git-Tag: v3.0-rc1~403^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69c80f3e9d3c569f8a3cee94ba1a324b5a7fa6b9;p=pandora-kernel.git sched: Make set_*_buddy() work on non-task entities Make set_*_buddy() work on non-task sched_entity, to facilitate the use of next_buddy to cache a group entity in cases where one of the tasks within that entity sleeps or gets preempted. set_skip_buddy() was incorrectly comparing the policy of task that is yielding to be not equal to SCHED_IDLE. Yielding should happen even when task yielding is SCHED_IDLE. This change removes the policy check on the yielding task. Signed-off-by: Venkatesh Pallipadi Signed-off-by: Peter Zijlstra Link: http://lkml.kernel.org/r/1302744070-30079-2-git-send-email-venki@google.com Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed