Commit 16d1e274 authored by Beata Michalska's avatar Beata Michalska Committed by Catalin Marinas
Browse files

arm64: Provide an AMU-based version of arch_freq_get_on_cpu



With the Frequency Invariance Engine (FIE) being already wired up with
sched tick and making use of relevant (core counter and constant
counter) AMU counters, getting the average frequency for a given CPU,
can be achieved by utilizing the frequency scale factor which reflects
an average CPU frequency for the last tick period length.

The solution is partially based on APERF/MPERF implementation of
arch_freq_get_on_cpu.

Suggested-by: default avatarIonela Voinescu <ionela.voinescu@arm.com>
Signed-off-by: default avatarBeata Michalska <beata.michalska@arm.com>
Reviewed-by: default avatarPrasanna Kumar T S M <ptsm@linux.microsoft.com>
Reviewed-by: default avatarSumit Gupta <sumitg@nvidia.com>
Link: https://lore.kernel.org/r/20250131162439.3843071-4-beata.michalska@arm.com


Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
parent fbb4a475
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment