/*
* deactivate_task - remove a task from the runqueue.
*/
-static void
-deactivate_task(struct rq *rq, struct task_struct *p, int sleep, u64 now)
+static void deactivate_task(struct rq *rq, struct task_struct *p, int sleep)
{
if (p->state == TASK_UNINTERRUPTIBLE)
rq->nr_uninterruptible++;
struct rq *this_rq, int this_cpu)
{
update_rq_clock(src_rq);
- deactivate_task(src_rq, p, 0, src_rq->clock);
+ deactivate_task(src_rq, p, 0);
set_task_cpu(p, this_cpu);
activate_task(this_rq, p, 0);
/*
unlikely(signal_pending(prev)))) {
prev->state = TASK_RUNNING;
} else {
- deactivate_task(rq, prev, 1, now);
+ deactivate_task(rq, prev, 1);
}
switch_count = &prev->nvcsw;
}
on_rq = p->se.on_rq;
if (on_rq) {
update_rq_clock(rq);
- deactivate_task(rq, p, 0, rq->clock);
+ deactivate_task(rq, p, 0);
}
oldprio = p->prio;
__setscheduler(rq, p, policy, param->sched_priority);
on_rq = p->se.on_rq;
if (on_rq) {
update_rq_clock(rq_src);
- deactivate_task(rq_src, p, 0, rq_src->clock);
+ deactivate_task(rq_src, p, 0);
}
set_task_cpu(p, dest_cpu);
if (on_rq) {
/* Idle task back to normal (off runqueue, low prio) */
rq = task_rq_lock(rq->idle, &flags);
update_rq_clock(rq);
- deactivate_task(rq, rq->idle, 0, rq->clock);
+ deactivate_task(rq, rq->idle, 0);
rq->idle->static_prio = MAX_PRIO;
__setscheduler(rq, rq->idle, SCHED_NORMAL, 0);
rq->idle->sched_class = &idle_sched_class;
on_rq = p->se.on_rq;
if (on_rq) {
update_rq_clock(task_rq(p));
- deactivate_task(task_rq(p), p, 0, task_rq(p)->clock);
+ deactivate_task(task_rq(p), p, 0);
}
__setscheduler(rq, p, SCHED_NORMAL, 0);
if (on_rq) {