diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2011-10-06 22:39:14 +0200 |
---|---|---|
committer | Andy Green <andy.green@linaro.org> | 2011-12-26 22:04:03 +0800 |
commit | 96faacb7142cb662dcb32fdd88cda092f8815988 (patch) | |
tree | 5e297aeb8258ecb8f3be63e4c0f127049c3c5079 /kernel/sched_rt.c | |
parent | b69a75a6ee61ff1d96c66d4c856f99b4f8ee9d8a (diff) |
sched, rt: Provide means of disabling cross-cpu bandwidth sharing
Normally the RT bandwidth scheme will share bandwidth across the
entire root_domain. However sometimes its convenient to disable this
sharing for debug purposes. Provide a simple feature switch to this
end.
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 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/sched_rt.c b/kernel/sched_rt.c index 056cbd2e2a2..583a1368afe 100644 --- a/kernel/sched_rt.c +++ b/kernel/sched_rt.c @@ -560,6 +560,9 @@ static int balance_runtime(struct rt_rq *rt_rq) { int more = 0; + if (!sched_feat(RT_RUNTIME_SHARE)) + return more; + if (rt_rq->rt_time > rt_rq->rt_runtime) { raw_spin_unlock(&rt_rq->rt_runtime_lock); more = do_balance_runtime(rt_rq); |