diff options
| author | Ingo Molnar <mingo@elte.hu> | 2007-08-09 05:16:49 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2007-08-09 05:16:49 -0400 |
| commit | 84a1d7a2f91d2f26d21026973dbf3023d17c701f (patch) | |
| tree | c10a3ae27b8f2d76da1597f16263eba93d73a02e /kernel/sched.c | |
| parent | ee0827d8b5271094380410cf21d8c48c109a773a (diff) | |
sched: remove the 'u64 now' parameter from update_curr_load()
remove the 'u64 now' parameter from update_curr_load().
( identity transformation that causes no change in functionality. )
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched.c')
| -rw-r--r-- | kernel/sched.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 0619178efa01..5d5859c2e019 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
| @@ -782,7 +782,7 @@ static void __update_curr_load(struct rq *rq, struct load_stat *ls) | |||
| 782 | * This function is called /before/ updating rq->ls.load | 782 | * This function is called /before/ updating rq->ls.load |
| 783 | * and when switching tasks. | 783 | * and when switching tasks. |
| 784 | */ | 784 | */ |
| 785 | static void update_curr_load(struct rq *rq, u64 now) | 785 | static void update_curr_load(struct rq *rq) |
| 786 | { | 786 | { |
| 787 | struct load_stat *ls = &rq->ls; | 787 | struct load_stat *ls = &rq->ls; |
| 788 | u64 start; | 788 | u64 start; |
| @@ -801,14 +801,14 @@ static void update_curr_load(struct rq *rq, u64 now) | |||
| 801 | static inline void | 801 | static inline void |
| 802 | inc_load(struct rq *rq, const struct task_struct *p, u64 now) | 802 | inc_load(struct rq *rq, const struct task_struct *p, u64 now) |
| 803 | { | 803 | { |
| 804 | update_curr_load(rq, now); | 804 | update_curr_load(rq); |
| 805 | update_load_add(&rq->ls.load, p->se.load.weight); | 805 | update_load_add(&rq->ls.load, p->se.load.weight); |
| 806 | } | 806 | } |
| 807 | 807 | ||
| 808 | static inline void | 808 | static inline void |
| 809 | dec_load(struct rq *rq, const struct task_struct *p, u64 now) | 809 | dec_load(struct rq *rq, const struct task_struct *p, u64 now) |
| 810 | { | 810 | { |
| 811 | update_curr_load(rq, now); | 811 | update_curr_load(rq); |
| 812 | update_load_sub(&rq->ls.load, p->se.load.weight); | 812 | update_load_sub(&rq->ls.load, p->se.load.weight); |
| 813 | } | 813 | } |
| 814 | 814 | ||
| @@ -1971,7 +1971,7 @@ static void update_cpu_load(struct rq *this_rq) | |||
| 1971 | goto do_avg; | 1971 | goto do_avg; |
| 1972 | 1972 | ||
| 1973 | /* Update delta_fair/delta_exec fields first */ | 1973 | /* Update delta_fair/delta_exec fields first */ |
| 1974 | update_curr_load(this_rq, now); | 1974 | update_curr_load(this_rq); |
| 1975 | 1975 | ||
| 1976 | fair_delta64 = ls->delta_fair + 1; | 1976 | fair_delta64 = ls->delta_fair + 1; |
| 1977 | ls->delta_fair = 0; | 1977 | ls->delta_fair = 0; |
