summaryrefslogtreecommitdiff
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorBeata Michalska <beata.michalska@arm.com>2025-01-31 19:24:38 +0300
committerCatalin Marinas <catalin.marinas@arm.com>2025-02-18 16:51:41 +0300
commit16d1e27475f673295f3eaac296dd835db3b8c4d4 (patch)
tree2cc30028e29583ba9e2098ed81119ca5227faf08 /lib/debugobjects.c
parentfbb4a4759b541d09ebb8e391d5fa7f9a5a0cad61 (diff)
downloadlinux-16d1e27475f673295f3eaac296dd835db3b8c4d4.tar.xz
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: Ionela Voinescu <ionela.voinescu@arm.com> Signed-off-by: Beata Michalska <beata.michalska@arm.com> Reviewed-by: Prasanna Kumar T S M <ptsm@linux.microsoft.com> Reviewed-by: Sumit Gupta <sumitg@nvidia.com> Link: https://lore.kernel.org/r/20250131162439.3843071-4-beata.michalska@arm.com Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions