Messages in this thread | | | Date | Fri, 10 Nov 2023 14:47:02 +0530 | From | Viresh Kumar <> | Subject | Re: [PATCH v6 3/7] cpufreq/schedutil: Use a fixed reference frequency |
| |
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@linaro.org> > Reviewed-by: Lukasz Luba <lukasz.luba@arm.com> > Tested-by: Lukasz Luba <lukasz.luba@arm.com> > Acked-by: Rafael J. Wysocki <rafael@kernel.org> > Reviewed-by: Dietmar Eggemann <dietmar.eggemann@arm.com> > --- > kernel/sched/cpufreq_schedutil.c | 26 ++++++++++++++++++++++++-- > 1 file changed, 24 insertions(+), 2 deletions(-)
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
-- viresh
| |