mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-11 16:29:05 +00:00
sched: remove the 'u64 now' parameter from dec_load()
remove the 'u64 now' parameter from dec_load(). ( identity transformation that causes no change in functionality. ) Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
29b4b623fe
commit
79b5dddf83
@ -804,8 +804,7 @@ static inline void inc_load(struct rq *rq, const struct task_struct *p)
|
|||||||
update_load_add(&rq->ls.load, p->se.load.weight);
|
update_load_add(&rq->ls.load, p->se.load.weight);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void
|
static inline void dec_load(struct rq *rq, const struct task_struct *p)
|
||||||
dec_load(struct rq *rq, const struct task_struct *p, u64 now)
|
|
||||||
{
|
{
|
||||||
update_curr_load(rq);
|
update_curr_load(rq);
|
||||||
update_load_sub(&rq->ls.load, p->se.load.weight);
|
update_load_sub(&rq->ls.load, p->se.load.weight);
|
||||||
@ -820,7 +819,7 @@ static void inc_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)
|
static void dec_nr_running(struct task_struct *p, struct rq *rq, u64 now)
|
||||||
{
|
{
|
||||||
rq->nr_running--;
|
rq->nr_running--;
|
||||||
dec_load(rq, p, now);
|
dec_load(rq, p);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void set_load_weight(struct task_struct *p)
|
static void set_load_weight(struct task_struct *p)
|
||||||
@ -3981,7 +3980,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, now);
|
||||||
dec_load(rq, p, now);
|
dec_load(rq, p);
|
||||||
}
|
}
|
||||||
|
|
||||||
p->static_prio = NICE_TO_PRIO(nice);
|
p->static_prio = NICE_TO_PRIO(nice);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user