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

From: Lukasz Luba
Date: Wed Oct 18 2023 - 07:15:22 EST




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@xxxxxxxxxx>
---
drivers/cpufreq/cpufreq.c | 4 ++--
include/linux/cpufreq.h | 9 +++++++++
2 files changed, 11 insertions(+), 2 deletions(-)


Reviewed-by: Lukasz Luba <lukasz.luba@xxxxxxx>