cpufreq/cppc: Set the frequency used for computing the capacity
authorVincent Guittot <vincent.guittot@linaro.org>
Mon, 11 Dec 2023 10:48:54 +0000 (11:48 +0100)
committerIngo Molnar <mingo@kernel.org>
Sat, 23 Dec 2023 14:52:36 +0000 (15:52 +0100)
commit5477fa249b56c59c3baa1b237bf083cffa64c84a
tree5b119f1a832267a69a9539d4afdda64fc407836d
parent50b813b147e9eb6546a1fc49d4e703e6d23691f2
cpufreq/cppc: Set the frequency used for computing the capacity

Save the frequency associated to the performance that has been used when
initializing the capacity of CPUs.

Also, cppc cpufreq driver can register an artificial energy model. In such
case, it needs the frequency for this compute capacity.

Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Tested-by: Pierre Gondois <pierre.gondois@arm.com>
Acked-by: Sudeep Holla <sudeep.holla@arm.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Link: https://lore.kernel.org/r/20231211104855.558096-7-vincent.guittot@linaro.org
drivers/base/arch_topology.c