aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2007-08-09 05:16:49 -0400
committerIngo Molnar <mingo@elte.hu>2007-08-09 05:16:49 -0400
commit29b4b623fe8163ca3c1da125da81234d41c8a3db (patch)
tree01213e2c44e0b226eb6ac8d257c655dc6ef1ec31 /kernel
parent84a1d7a2f91d2f26d21026973dbf3023d17c701f (diff)
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: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel')
-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: