From: Darren Hart Date: Tue, 22 Feb 2011 21:04:33 +0000 (-0800) Subject: sched: Allow SCHED_BATCH to preempt SCHED_IDLE tasks X-Git-Tag: v2.6.39-rc1~509^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2f5c9ab79f78e8b91ac993e0543d65b661dd19b;p=pandora-kernel.git sched: Allow SCHED_BATCH to preempt SCHED_IDLE tasks Perform the test for SCHED_IDLE before testing for SCHED_BATCH (and ensure idle tasks don't preempt idle tasks) so the non-interactive, but still important, SCHED_BATCH tasks will run in favor of the very low priority SCHED_IDLE tasks. Signed-off-by: Darren Hart Signed-off-by: Peter Zijlstra Acked-by: Mike Galbraith Cc: Richard Purdie LKML-Reference: <1298408674-3130-2-git-send-email-dvhart@linux.intel.com> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed