Commit 69be72c1 authored by Ingo Molnar's avatar Ingo Molnar

sched: remove the 'u64 now' parameter from dequeue_task()

remove the 'u64 now' parameter from dequeue_task().

( identity transformation that causes no change in functionality. )
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 8159f87e
...@@ -853,8 +853,7 @@ static void enqueue_task(struct rq *rq, struct task_struct *p, int wakeup) ...@@ -853,8 +853,7 @@ static void enqueue_task(struct rq *rq, struct task_struct *p, int wakeup)
p->se.on_rq = 1; p->se.on_rq = 1;
} }
static void static void dequeue_task(struct rq *rq, struct task_struct *p, int sleep)
dequeue_task(struct rq *rq, struct task_struct *p, int sleep, u64 now)
{ {
p->sched_class->dequeue_task(rq, p, sleep); p->sched_class->dequeue_task(rq, p, sleep);
p->se.on_rq = 0; p->se.on_rq = 0;
...@@ -949,7 +948,7 @@ deactivate_task(struct rq *rq, struct task_struct *p, int sleep, u64 now) ...@@ -949,7 +948,7 @@ deactivate_task(struct rq *rq, struct task_struct *p, int sleep, u64 now)
if (p->state == TASK_UNINTERRUPTIBLE) if (p->state == TASK_UNINTERRUPTIBLE)
rq->nr_uninterruptible++; rq->nr_uninterruptible++;
dequeue_task(rq, p, sleep, now); dequeue_task(rq, p, sleep);
dec_nr_running(p, rq); dec_nr_running(p, rq);
} }
...@@ -3922,7 +3921,7 @@ void rt_mutex_setprio(struct task_struct *p, int prio) ...@@ -3922,7 +3921,7 @@ void rt_mutex_setprio(struct task_struct *p, int prio)
oldprio = p->prio; oldprio = p->prio;
on_rq = p->se.on_rq; on_rq = p->se.on_rq;
if (on_rq) if (on_rq)
dequeue_task(rq, p, 0, now); dequeue_task(rq, p, 0);
if (rt_prio(prio)) if (rt_prio(prio))
p->sched_class = &rt_sched_class; p->sched_class = &rt_sched_class;
...@@ -3978,7 +3977,7 @@ void set_user_nice(struct task_struct *p, long nice) ...@@ -3978,7 +3977,7 @@ void set_user_nice(struct task_struct *p, long nice)
} }
on_rq = p->se.on_rq; on_rq = p->se.on_rq;
if (on_rq) { if (on_rq) {
dequeue_task(rq, p, 0, now); dequeue_task(rq, p, 0);
dec_load(rq, p); dec_load(rq, p);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment