diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2010-01-19 16:09:11 +0100 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2010-02-21 20:20:10 +0100 |
commit | 6640be50e8a2f9bd526beddafd23b49406a4af07 (patch) | |
tree | 3a2cef9f3b60fd9edeea265e3ec6226e421e356a /include | |
parent | 57bba6a44244a9c7cef5951041bdd3f747b28ed0 (diff) | |
download | lwn-6640be50e8a2f9bd526beddafd23b49406a4af07.tar.gz lwn-6640be50e8a2f9bd526beddafd23b49406a4af07.zip |
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>
Diffstat (limited to 'include')
-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 57cf766c3404..64cf01a3cd0f 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -1119,7 +1119,8 @@ struct sched_domain; struct sched_class { const struct sched_class *next; - void (*enqueue_task) (struct rq *rq, struct task_struct *p, int wakeup); + void (*enqueue_task) (struct rq *rq, struct task_struct *p, int wakeup, + bool head); void (*dequeue_task) (struct rq *rq, struct task_struct *p, int sleep); void (*yield_task) (struct rq *rq); |