aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-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);