summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>2009-02-25 09:59:26 -0800
committerIngo Molnar <mingo@elte.hu>2009-02-26 14:18:55 +0100
commitcac64d00c256e65776d575e82aaf540632b66178 (patch)
tree993ca627d80b76baefe322c3cbef9f1599d55bff
parent694593e3374a67d95ece6a275a1f181644c2c4d8 (diff)
downloadop-kernel-dev-cac64d00c256e65776d575e82aaf540632b66178.zip
op-kernel-dev-cac64d00c256e65776d575e82aaf540632b66178.tar.gz
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>
-rw-r--r--kernel/sched.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 410eec4..c3baa96 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))
OpenPOWER on IntegriCloud