]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sched: Give CPU bound RT tasks preference
authorstable-bot for Steven Rostedt <srostedt@redhat.com>
Thu, 10 Feb 2011 09:21:08 +0000 (10:21 +0100)
committerAK <andi@firstfloor.org>
Thu, 31 Mar 2011 18:57:58 +0000 (11:57 -0700)
commit54b79ba6355064fdbcea6bf96e28c148efc1c924
tree059bb347281cc3294989bb344f8b7cc176ba467e
parent758df963bb23a00cb6f2fbf9714ea37d3fa116a8
sched: Give CPU bound RT tasks preference

From:: Steven Rostedt <srostedt@redhat.com>

Commit: b3bc211cfe7d5fe94b310480d78e00bea96fbf2a upstream

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>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Cc: Gregory Haskins <ghaskins@novell.com>
LKML-Reference: <20100921024138.888922071@goodmis.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Mike Galbraith <efault@gmx.de>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
kernel/sched_rt.c