Re: [PATCH V3] sched/cpufreq: calculate util / cap in advance in map_util_freq()

From: Peter Zijlstra
Date: Tue Jan 29 2019 - 05:41:08 EST


On Mon, Jan 28, 2019 at 02:27:21PM +0800, Chunyan Zhang wrote:
> From: "vincent.wang" <vincent.wang@xxxxxxxxxx>
>
> When a task that is in_iowait state is enqueued, cpufreq_update_util()
> will be invoked with SCHED_CPUFREQ_IOWAIT flag. In this case,the value
> of util and cap, which are parameters used in map_util_freq(), will be
> cpu frequency, instead of cpu util and capactiy.

Didn't I tell you to fix the IOWAIT case to not pass in such large
numbers?