[PATCH v2 3/6] cpufreq: use the fixed and coherent frequency for scaling capacity

Lukasz Luba lukasz.luba at arm.com
Wed Oct 18 04:16:01 PDT 2023



On 10/9/23 11:36, Vincent Guittot wrote:
> cpuinfo.max_freq can change at runtime because of boost as an example. This
> implies that the value could be different from the frequency that has been
> used to compute the capacity of a CPU.
> 
> The new arch_scale_freq_ref() returns a fixed and coherent frequency
> that can be used to compute the capacity for a given frequency.
> 
> Signed-off-by: Vincent Guittot <vincent.guittot at linaro.org>
> ---
>   drivers/cpufreq/cpufreq.c | 4 ++--
>   include/linux/cpufreq.h   | 9 +++++++++
>   2 files changed, 11 insertions(+), 2 deletions(-)
> 

Reviewed-by: Lukasz Luba <lukasz.luba at arm.com>



More information about the linux-arm-kernel mailing list