Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cac64d00 authored by Hiroshi Shimamoto's avatar Hiroshi Shimamoto Committed by Ingo Molnar
Browse files

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: default avatarHiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
Acked-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 694593e3
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -223,7 +223,7 @@ static void start_rt_bandwidth(struct rt_bandwidth *rt_b)
{
{
	ktime_t now;
	ktime_t now;


	if (rt_bandwidth_enabled() && rt_b->rt_runtime == RUNTIME_INF)
	if (!rt_bandwidth_enabled() || rt_b->rt_runtime == RUNTIME_INF)
		return;
		return;


	if (hrtimer_active(&rt_b->rt_period_timer))
	if (hrtimer_active(&rt_b->rt_period_timer))