diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2010-01-20 15:58:57 -0500 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2010-01-22 12:09:59 -0500 |
commit | ea87bb7853168434f4a82426dd1ea8421f9e604d (patch) | |
tree | fcadec9b0fd1c57e4d1b625e2492c13c852972f1 /include/linux/sched.h | |
parent | 7c9414385ebfdd87cc542d4e7e3bb0dbb2d3ce25 (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 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 8b079735ae5f..b35c0c7130c8 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -1067,7 +1067,8 @@ struct sched_domain; | |||
1067 | struct sched_class { | 1067 | struct sched_class { |
1068 | const struct sched_class *next; | 1068 | const struct sched_class *next; |
1069 | 1069 | ||
1070 | void (*enqueue_task) (struct rq *rq, struct task_struct *p, int wakeup); | 1070 | void (*enqueue_task) (struct rq *rq, struct task_struct *p, int wakeup, |
1071 | bool head); | ||
1071 | void (*dequeue_task) (struct rq *rq, struct task_struct *p, int sleep); | 1072 | void (*dequeue_task) (struct rq *rq, struct task_struct *p, int sleep); |
1072 | void (*yield_task) (struct rq *rq); | 1073 | void (*yield_task) (struct rq *rq); |
1073 | 1074 | ||