diff options
author | Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com> | 2009-02-25 09:59:26 -0800 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-02-26 14:18:55 +0100 |
commit | cac64d00c256e65776d575e82aaf540632b66178 (patch) | |
tree | 993ca627d80b76baefe322c3cbef9f1599d55bff /kernel | |
parent | 694593e3374a67d95ece6a275a1f181644c2c4d8 (diff) | |
download | kernel-common-cac64d00c256e65776d575e82aaf540632b66178.tar.gz kernel-common-cac64d00c256e65776d575e82aaf540632b66178.tar.bz2 kernel-common-cac64d00c256e65776d575e82aaf540632b66178.zip |
sched_rt: don't start timer when rt bandwidth disabled
Impact: fix incorrect condition check
No need to start rt bandwidth timer when rt bandwidth is disabled.
If this timer starts, it may stop at sched_rt_period_timer() on the first time.
Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sched.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 410eec404133..c3baa9653d1d 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -223,7 +223,7 @@ static void start_rt_bandwidth(struct rt_bandwidth *rt_b) { ktime_t now; - if (rt_bandwidth_enabled() && rt_b->rt_runtime == RUNTIME_INF) + if (!rt_bandwidth_enabled() || rt_b->rt_runtime == RUNTIME_INF) return; if (hrtimer_active(&rt_b->rt_period_timer)) |