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

Commit 63d1657d authored by Samer Xie's avatar Samer Xie Committed by Todd Kjos
Browse files

ANDROID: sched/rt: fix the problem that rt_rq's util is always zero.



with the following commit:

a05271a0 ("FROMLIST: sched/rt: add utilization tracking")

No chance to accumulate for the load avg of rt rq due to the weight
and the running are always zero in update_rt_rq_load_avg(). Fix
that by setting the weight equal the running.

Bug: 120440300
Change-Id: Ie8326cf678e255ac0431aa87d3fa2a273e8d622e
Signed-off-by: default avatarSamer Xie <samer.xie@unisoc.com>
parent 70014b13
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3469,7 +3469,7 @@ int update_rt_rq_load_avg(u64 now, int cpu, struct rt_rq *rt_rq, int running)
{
	int ret;

	ret = ___update_load_avg(now, cpu, &rt_rq->avg, 0, running, NULL, rt_rq);
	ret = ___update_load_avg(now, cpu, &rt_rq->avg, running, running, NULL, rt_rq);

	return ret;
}