Commit 31ee529c authored by Ingo Molnar's avatar Ingo Molnar

sched: remove the 'u64 now' parameter from ->put_prev_task()

remove the 'u64 now' parameter from ->put_prev_task().

( identity transformation that causes no change in functionality. )
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent ff95f3df
...@@ -862,7 +862,7 @@ struct sched_class { ...@@ -862,7 +862,7 @@ struct sched_class {
void (*check_preempt_curr) (struct rq *rq, struct task_struct *p); void (*check_preempt_curr) (struct rq *rq, struct task_struct *p);
struct task_struct * (*pick_next_task) (struct rq *rq); struct task_struct * (*pick_next_task) (struct rq *rq);
void (*put_prev_task) (struct rq *rq, struct task_struct *p, u64 now); void (*put_prev_task) (struct rq *rq, struct task_struct *p);
unsigned long (*load_balance) (struct rq *this_rq, int this_cpu, unsigned long (*load_balance) (struct rq *this_rq, int this_cpu,
struct rq *busiest, struct rq *busiest,
......
...@@ -3470,7 +3470,7 @@ asmlinkage void __sched schedule(void) ...@@ -3470,7 +3470,7 @@ asmlinkage void __sched schedule(void)
if (unlikely(!rq->nr_running)) if (unlikely(!rq->nr_running))
idle_balance(cpu, rq); idle_balance(cpu, rq);
prev->sched_class->put_prev_task(rq, prev, now); prev->sched_class->put_prev_task(rq, prev);
next = pick_next_task(rq, prev); next = pick_next_task(rq, prev);
sched_info_switch(prev, next); sched_info_switch(prev, next);
......
...@@ -878,7 +878,7 @@ static struct task_struct *pick_next_task_fair(struct rq *rq) ...@@ -878,7 +878,7 @@ static struct task_struct *pick_next_task_fair(struct rq *rq)
/* /*
* Account for a descheduled task: * Account for a descheduled task:
*/ */
static void put_prev_task_fair(struct rq *rq, struct task_struct *prev, u64 now) static void put_prev_task_fair(struct rq *rq, struct task_struct *prev)
{ {
struct sched_entity *se = &prev->se; struct sched_entity *se = &prev->se;
struct cfs_rq *cfs_rq; struct cfs_rq *cfs_rq;
......
...@@ -33,7 +33,7 @@ dequeue_task_idle(struct rq *rq, struct task_struct *p, int sleep) ...@@ -33,7 +33,7 @@ dequeue_task_idle(struct rq *rq, struct task_struct *p, int sleep)
spin_lock_irq(&rq->lock); spin_lock_irq(&rq->lock);
} }
static void put_prev_task_idle(struct rq *rq, struct task_struct *prev, u64 now) static void put_prev_task_idle(struct rq *rq, struct task_struct *prev)
{ {
} }
......
...@@ -92,7 +92,7 @@ static struct task_struct *pick_next_task_rt(struct rq *rq) ...@@ -92,7 +92,7 @@ static struct task_struct *pick_next_task_rt(struct rq *rq)
return next; return next;
} }
static void put_prev_task_rt(struct rq *rq, struct task_struct *p, u64 now) static void put_prev_task_rt(struct rq *rq, struct task_struct *p)
{ {
update_curr_rt(rq); update_curr_rt(rq);
p->se.exec_start = 0; p->se.exec_start = 0;
......
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