aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 5d5859c2e019..aa8cac4ae547 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -798,8 +798,7 @@ static void update_curr_load(struct rq *rq)
798 __update_curr_load(rq, ls); 798 __update_curr_load(rq, ls);
799} 799}
800 800
801static inline void 801static inline void inc_load(struct rq *rq, const struct task_struct *p)
802inc_load(struct rq *rq, const struct task_struct *p, u64 now)
803{ 802{
804 update_curr_load(rq); 803 update_curr_load(rq);
805 update_load_add(&rq->ls.load, p->se.load.weight); 804 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)
815static void inc_nr_running(struct task_struct *p, struct rq *rq, u64 now) 814static void inc_nr_running(struct task_struct *p, struct rq *rq, u64 now)
816{ 815{
817 rq->nr_running++; 816 rq->nr_running++;
818 inc_load(rq, p, now); 817 inc_load(rq, p);
819} 818}
820 819
821static void dec_nr_running(struct task_struct *p, struct rq *rq, u64 now) 820static 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 3992
3994 if (on_rq) { 3993 if (on_rq) {
3995 enqueue_task(rq, p, 0, now); 3994 enqueue_task(rq, p, 0, now);
3996 inc_load(rq, p, now); 3995 inc_load(rq, p);
3997 /* 3996 /*
3998 * If the task increased its priority or is running and 3997 * If the task increased its priority or is running and
3999 * lowered its priority, then reschedule its CPU: 3998 * lowered its priority, then reschedule its CPU: