diff options
Diffstat (limited to 'kernel/sched_rt.c')
-rw-r--r-- | kernel/sched_rt.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/sched_rt.c b/kernel/sched_rt.c index 201a69382a42..736fb8fd8977 100644 --- a/kernel/sched_rt.c +++ b/kernel/sched_rt.c | |||
@@ -518,6 +518,8 @@ static void enqueue_task_rt(struct rq *rq, struct task_struct *p, int wakeup) | |||
518 | */ | 518 | */ |
519 | for_each_sched_rt_entity(rt_se) | 519 | for_each_sched_rt_entity(rt_se) |
520 | enqueue_rt_entity(rt_se); | 520 | enqueue_rt_entity(rt_se); |
521 | |||
522 | inc_cpu_load(rq, p->se.load.weight); | ||
521 | } | 523 | } |
522 | 524 | ||
523 | static void dequeue_task_rt(struct rq *rq, struct task_struct *p, int sleep) | 525 | static void dequeue_task_rt(struct rq *rq, struct task_struct *p, int sleep) |
@@ -537,6 +539,8 @@ static void dequeue_task_rt(struct rq *rq, struct task_struct *p, int sleep) | |||
537 | if (rt_rq && rt_rq->rt_nr_running) | 539 | if (rt_rq && rt_rq->rt_nr_running) |
538 | enqueue_rt_entity(rt_se); | 540 | enqueue_rt_entity(rt_se); |
539 | } | 541 | } |
542 | |||
543 | dec_cpu_load(rq, p->se.load.weight); | ||
540 | } | 544 | } |
541 | 545 | ||
542 | /* | 546 | /* |