diff options
author | Ionela Voinescu <ionela.voinescu@arm.com> | 2020-11-06 13:53:32 +0100 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2020-11-13 21:05:10 +0100 |
commit | 4b9cf23c179a27659a95c094ace658bb92f146e5 (patch) | |
tree | 6f58d2c1e5ec88249d376f6af9e0accb39512183 /include | |
parent | Linux 5.10-rc3 (diff) | |
download | linux-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