sched: Give CPU bound RT tasks preference
authorSteven Rostedt <srostedt@redhat.com>
Tue, 21 Sep 2010 02:40:04 +0000 (22:40 -0400)
committerIngo Molnar <mingo@elte.hu>
Tue, 21 Sep 2010 11:57:12 +0000 (13:57 +0200)
commitb3bc211cfe7d5fe94b310480d78e00bea96fbf2a
treee968fb5c22fec33cc912cb40745583b4253703d6
parent43fa5460fe60dea5c610490a1d263415419c60f6
sched: Give CPU bound RT tasks preference

If a high priority task is waking up on a CPU that is running a
lower priority task that is bound to a CPU, see if we can move the
high RT task to another CPU first. Note, if all other CPUs are
running higher priority tasks than the CPU bounded current task,
then it will be preempted regardless.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Gregory Haskins <ghaskins@novell.com>
LKML-Reference: <20100921024138.888922071@goodmis.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched_rt.c