aboutsummaryrefslogtreecommitdiffstats
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
commite5fa2237b53d751c59f773a68e1b12c411f0b19b (patch)
tree277900ae9f0049cd66ea224f474784e31c4fa714
parent79b5dddf831b4719b7ec8dfcfb9bf9c619805b9c (diff)
sched: remove the 'u64 now' parameter from inc_nr_running()
remove the 'u64 now' parameter from inc_nr_running(). ( identity transformation that causes no change in functionality. ) Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r--kernel/sched.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 23583bb93273..bdb683464c00 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -810,7 +810,7 @@ static inline void dec_load(struct rq *rq, const struct task_struct *p)
810 update_load_sub(&rq->ls.load, p->se.load.weight); 810 update_load_sub(&rq->ls.load, p->se.load.weight);
811} 811}
812 812
813static void inc_nr_running(struct task_struct *p, struct rq *rq, u64 now) 813static void inc_nr_running(struct task_struct *p, struct rq *rq)
814{ 814{
815 rq->nr_running++; 815 rq->nr_running++;
816 inc_load(rq, p); 816 inc_load(rq, p);
@@ -921,7 +921,7 @@ static void activate_task(struct rq *rq, struct task_struct *p, int wakeup)
921 rq->nr_uninterruptible--; 921 rq->nr_uninterruptible--;
922 922
923 enqueue_task(rq, p, wakeup, now); 923 enqueue_task(rq, p, wakeup, now);
924 inc_nr_running(p, rq, now); 924 inc_nr_running(p, rq);
925} 925}
926 926
927/* 927/*
@@ -938,7 +938,7 @@ static inline void activate_idle_task(struct task_struct *p, struct rq *rq)
938 rq->nr_uninterruptible--; 938 rq->nr_uninterruptible--;
939 939
940 enqueue_task(rq, p, 0, now); 940 enqueue_task(rq, p, 0, now);
941 inc_nr_running(p, rq, now); 941 inc_nr_running(p, rq);
942} 942}
943 943
944/* 944/*
@@ -1671,7 +1671,7 @@ void fastcall wake_up_new_task(struct task_struct *p, unsigned long clone_flags)
1671 * management (if any): 1671 * management (if any):
1672 */ 1672 */
1673 p->sched_class->task_new(rq, p); 1673 p->sched_class->task_new(rq, p);
1674 inc_nr_running(p, rq, now); 1674 inc_nr_running(p, rq);
1675 } 1675 }
1676 check_preempt_curr(rq, p); 1676 check_preempt_curr(rq, p);
1677 task_rq_unlock(rq, &flags); 1677 task_rq_unlock(rq, &flags);