Vincent Guittot 1f023007f5 arm64/amu: Use capacity_ref_freq() to set AMU ratio
Use the new capacity_ref_freq() method to set the ratio that is used by AMU for
computing the arch_scale_freq_capacity().
This helps to keep everything aligned using the same reference for
computing CPUs capacity.

The default value of the ratio (stored in per_cpu(arch_max_freq_scale))
ensures that arch_scale_freq_capacity() returns max capacity until it is
set to its correct value with the cpu capacity and capacity_ref_freq().

Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Sudeep Holla <sudeep.holla@arm.com>
Acked-by: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20231211104855.558096-8-vincent.guittot@linaro.org
2023-12-23 15:52:36 +01:00
..
2023-10-28 21:09:02 +09:00
2023-10-28 21:09:02 +09:00
2023-11-01 09:34:55 -10:00
2023-10-13 19:12:34 +01:00
2023-11-03 15:44:25 -10:00
2023-11-01 20:51:41 -10:00
2023-06-06 17:39:05 +01:00
2023-07-03 15:32:22 -07:00
2023-11-01 20:51:41 -10:00
2022-09-26 10:13:14 -07:00
2023-08-28 17:34:54 -07:00
2023-08-31 12:20:12 -07:00
2022-09-26 10:13:14 -07:00
2023-11-10 12:22:14 -08:00
2023-04-13 12:27:11 +01:00
2023-11-02 15:45:15 -10:00