aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched_rt.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sched_rt.c')
-rw-r--r--kernel/sched_rt.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/kernel/sched_rt.c b/kernel/sched_rt.c
index 77340b04a538..94daace5ee15 100644
--- a/kernel/sched_rt.c
+++ b/kernel/sched_rt.c
@@ -386,7 +386,7 @@ static int do_sched_rt_period_timer(struct rt_bandwidth *rt_b, int overrun)
386 int i, idle = 1; 386 int i, idle = 1;
387 cpumask_t span; 387 cpumask_t span;
388 388
389 if (rt_b->rt_runtime == RUNTIME_INF) 389 if (!rt_bandwidth_enabled() || rt_b->rt_runtime == RUNTIME_INF)
390 return 1; 390 return 1;
391 391
392 span = sched_rt_period_mask(); 392 span = sched_rt_period_mask();
@@ -484,6 +484,9 @@ static void update_curr_rt(struct rq *rq)
484 curr->se.exec_start = rq->clock; 484 curr->se.exec_start = rq->clock;
485 cpuacct_charge(curr, delta_exec); 485 cpuacct_charge(curr, delta_exec);
486 486
487 if (!rt_bandwidth_enabled())
488 return;
489
487 for_each_sched_rt_entity(rt_se) { 490 for_each_sched_rt_entity(rt_se) {
488 rt_rq = rt_rq_of_se(rt_se); 491 rt_rq = rt_rq_of_se(rt_se);
489 492