sched: Extend enqueue_task to allow head queueing
authorThomas Gleixner <tglx@linutronix.de>
Wed, 20 Jan 2010 20:58:57 +0000 (20:58 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 22 Jan 2010 17:09:59 +0000 (18:09 +0100)
commitea87bb7853168434f4a82426dd1ea8421f9e604d
treefcadec9b0fd1c57e4d1b625e2492c13c852972f1
parent7c9414385ebfdd87cc542d4e7e3bb0dbb2d3ce25
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>
include/linux/sched.h
kernel/sched.c
kernel/sched_fair.c
kernel/sched_rt.c