schedutil : cap iowait boost by uclamp_max
Which is a backport of upstream fix: d37aee9018e6 ("sched/uclamp: Fix iowait boost escaping uclamp restriction") Bug: 261695814 Signed-off-by: Qais Yousef <qyousef@google.com> Change-Id: Ibe8175edb9dea35e325f1a6f4306885ab8b6b28a
This commit is contained in:
parent
ca3d31ea66
commit
971267e87b
1 changed files with 4 additions and 1 deletions
|
@ -421,7 +421,10 @@ static unsigned long sugov_iowait_apply(struct sugov_cpu *sg_cpu, u64 time,
|
|||
* into the same scale so we can compare.
|
||||
*/
|
||||
boost = (sg_cpu->iowait_boost * max) >> SCHED_CAPACITY_SHIFT;
|
||||
return max(boost, util);
|
||||
boost = max(boost, util);
|
||||
boost = uclamp_rq_util_with(cpu_rq(sg_cpu->cpu), boost, NULL);
|
||||
|
||||
return boost;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_NO_HZ_COMMON
|
||||
|
|
Loading…
Reference in a new issue