[PATCH v6 3/7] cpufreq/schedutil: Use a fixed reference frequency

Viresh Kumar viresh.kumar at linaro.org
Fri Nov 10 01:17:02 PST 2023


On 09-11-23, 11:14, Vincent Guittot wrote:
> cpuinfo.max_freq can change at runtime because of boost as an example. This
> implies that the value could be different than the one that has been
> used when computing the capacity of a CPU.
> 
> The new arch_scale_freq_ref() returns a fixed and coherent reference
> frequency that can be used when computing a frequency based on utilization.
> 
> Use this arch_scale_freq_ref() when available and fallback to
> policy otherwise.
> 
> Signed-off-by: Vincent Guittot <vincent.guittot at linaro.org>
> Reviewed-by: Lukasz Luba <lukasz.luba at arm.com>
> Tested-by: Lukasz Luba <lukasz.luba at arm.com>
> Acked-by: Rafael J. Wysocki <rafael at kernel.org>
> Reviewed-by: Dietmar Eggemann <dietmar.eggemann at arm.com>
> ---
>  kernel/sched/cpufreq_schedutil.c | 26 ++++++++++++++++++++++++--
>  1 file changed, 24 insertions(+), 2 deletions(-)

Acked-by: Viresh Kumar <viresh.kumar at linaro.org>

-- 
viresh



More information about the linux-arm-kernel mailing list