aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched_rt.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2010-01-20 15:58:57 -0500
committerThomas Gleixner <tglx@linutronix.de>2010-01-22 12:09:59 -0500
commitea87bb7853168434f4a82426dd1ea8421f9e604d (patch)
treefcadec9b0fd1c57e4d1b625e2492c13c852972f1 /kernel/sched_rt.c
parent7c9414385ebfdd87cc542d4e7e3bb0dbb2d3ce25 (diff)
sched: Extend enqueue_task to allow head queueing
The ability of enqueueing a task to the head of a SCHED_FIFO priority list is required to fix some violations of POSIX scheduling policy. Extend the related functions with a "head" argument. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Peter Zijlstra <peterz@infradead.org> Tested-by: Carsten Emde <cbe@osadl.org> Tested-by: Mathias Weber <mathias.weber.mw1@roche.com> LKML-Reference: <20100120171629.734886007@linutronix.de>
Diffstat (limited to 'kernel/sched_rt.c')
-rw-r--r--kernel/sched_rt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/sched_rt.c b/kernel/sched_rt.c
index 502bb614e40a..38076dabb44a 100644
--- a/kernel/sched_rt.c
+++ b/kernel/sched_rt.c
@@ -878,7 +878,8 @@ static void dequeue_rt_entity(struct sched_rt_entity *rt_se)
878/* 878/*
879 * Adding/removing a task to/from a priority array: 879 * Adding/removing a task to/from a priority array:
880 */ 880 */
881static void enqueue_task_rt(struct rq *rq, struct task_struct *p, int wakeup) 881static void
882enqueue_task_rt(struct rq *rq, struct task_struct *p, int wakeup, bool head)
882{ 883{
883 struct sched_rt_entity *rt_se = &p->rt; 884 struct sched_rt_entity *rt_se = &p->rt;
884 885