summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorIonela Voinescu <ionela.voinescu@arm.com>2020-11-06 13:53:32 +0100
committerCatalin Marinas <catalin.marinas@arm.com>2020-11-13 21:05:10 +0100
commit4b9cf23c179a27659a95c094ace658bb92f146e5 (patch)
tree6f58d2c1e5ec88249d376f6af9e0accb39512183 /include
parentLinux 5.10-rc3 (diff)
downloadlinux-4b9cf23c179a27659a95c094ace658bb92f146e5.tar.xz
linux-4b9cf23c179a27659a95c094ace658bb92f146e5.zip
arm64: wrap and generalise counter read functions
In preparation for other uses of Activity Monitors (AMU) cycle counters, place counter read functionality in generic functions that can reused: read_corecnt() and read_constcnt(). As a result, implement update_freq_counters_refs() to replace init_cpu_freq_invariance_counters() and both initialise and update the per-cpu reference variables. Signed-off-by: Ionela Voinescu <ionela.voinescu@arm.com> Reviewed-by: Sudeep Holla <sudeep.holla@arm.com> Cc: Will Deacon <will@kernel.org> Link: https://lore.kernel.org/r/20201106125334.21570-2-ionela.voinescu@arm.com Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions