diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2008-08-19 06:33:04 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-08-19 07:10:10 -0400 |
commit | 0b148fa04852859972abbf848177b92daeef138a (patch) | |
tree | 12d4b0daa8292fe406871b5aa034d7c9b2fae13d /kernel/sched_rt.c | |
parent | 6f0d5c390e4206dcb3804a5072a048fdb7d2b428 (diff) |
sched: rt-bandwidth group disable fixes
More extensive disable of bandwidth control. It allows sysctl_sched_rt_runtime
to disable full group bandwidth control.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched_rt.c')
-rw-r--r-- | kernel/sched_rt.c | 5 |
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 | ||