git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sched: Introduce a function to update the idle statistics
[safe/jmp/linux-2.6]
/
kernel
/
sched_rt.c
diff --git
a/kernel/sched_rt.c
b/kernel/sched_rt.c
index
fde895f
..
8afb953
100644
(file)
--- a/
kernel/sched_rt.c
+++ b/
kernel/sched_rt.c
@@
-888,20
+888,20
@@
static void dequeue_rt_entity(struct sched_rt_entity *rt_se)
* Adding/removing a task to/from a priority array:
*/
static void
* Adding/removing a task to/from a priority array:
*/
static void
-enqueue_task_rt(struct rq *rq, struct task_struct *p, int
wakeup, bool head
)
+enqueue_task_rt(struct rq *rq, struct task_struct *p, int
flags
)
{
struct sched_rt_entity *rt_se = &p->rt;
{
struct sched_rt_entity *rt_se = &p->rt;
- if (
wakeup
)
+ if (
flags & ENQUEUE_WAKEUP
)
rt_se->timeout = 0;
rt_se->timeout = 0;
- enqueue_rt_entity(rt_se,
head
);
+ enqueue_rt_entity(rt_se,
flags & ENQUEUE_HEAD
);
if (!task_current(rq, p) && p->rt.nr_cpus_allowed > 1)
enqueue_pushable_task(rq, p);
}
if (!task_current(rq, p) && p->rt.nr_cpus_allowed > 1)
enqueue_pushable_task(rq, p);
}
-static void dequeue_task_rt(struct rq *rq, struct task_struct *p, int
sleep
)
+static void dequeue_task_rt(struct rq *rq, struct task_struct *p, int
flags
)
{
struct sched_rt_entity *rt_se = &p->rt;
{
struct sched_rt_entity *rt_se = &p->rt;