Commit 29b4b623 authored by Ingo Molnar's avatar Ingo Molnar

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

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

( identity transformation that causes no change in functionality. )
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 84a1d7a2
...@@ -798,8 +798,7 @@ static void update_curr_load(struct rq *rq) ...@@ -798,8 +798,7 @@ static void update_curr_load(struct rq *rq)
__update_curr_load(rq, ls); __update_curr_load(rq, ls);
} }
static inline void static inline void inc_load(struct rq *rq, const struct task_struct *p)
inc_load(struct rq *rq, const struct task_struct *p, u64 now)
{ {
update_curr_load(rq); update_curr_load(rq);
update_load_add(&rq->ls.load, p->se.load.weight); update_load_add(&rq->ls.load, p->se.load.weight);
...@@ -815,7 +814,7 @@ dec_load(struct rq *rq, const struct task_struct *p, u64 now) ...@@ -815,7 +814,7 @@ dec_load(struct rq *rq, const struct task_struct *p, u64 now)
static void inc_nr_running(struct task_struct *p, struct rq *rq, u64 now) static void inc_nr_running(struct task_struct *p, struct rq *rq, u64 now)
{ {
rq->nr_running++; rq->nr_running++;
inc_load(rq, p, now); inc_load(rq, p);
} }
static void dec_nr_running(struct task_struct *p, struct rq *rq, u64 now) static void dec_nr_running(struct task_struct *p, struct rq *rq, u64 now)
...@@ -3993,7 +3992,7 @@ void set_user_nice(struct task_struct *p, long nice) ...@@ -3993,7 +3992,7 @@ void set_user_nice(struct task_struct *p, long nice)
if (on_rq) { if (on_rq) {
enqueue_task(rq, p, 0, now); enqueue_task(rq, p, 0, now);
inc_load(rq, p, now); inc_load(rq, p);
/* /*
* If the task increased its priority or is running and * If the task increased its priority or is running and
* lowered its priority, then reschedule its CPU: * lowered its priority, then reschedule its CPU:
......
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