Messages in this thread | | | Date | Mon, 4 Mar 2019 18:44:53 +0100 | From | Peter Zijlstra <> | Subject | Re: 答复: [PATCH V4] sc hed/cpufreq: initializ e iowait_boost_max and iowait_boost with cpu capacity |
| |
On Mon, Mar 04, 2019 at 06:40:28PM +0100, Peter Zijlstra wrote:
> /* > * @util is already in capacity scale, convert iowait_boost > * into the same scale so we can compare. > */ > boost = (sg_cpu->iowait_boost * max) >> SCHED_CAPACITY_SHIFT; > util = max(boost, util); > return min(util, max);
Ah, I don't think we need that last min in this case; both terms should already be <= SCHED_CAPACITY_SCALE.
| |