Messages in this thread Patch in this message | ![/](/images/icornerl.gif) | | From | Sumit Gupta <> | Subject | [Patch 5/6] arm64: cpufeature: Export get_cpu_with_amu_feat func | Date | Tue, 18 Apr 2023 17:04:58 +0530 |
| |
Export the get_cpu_with_amu_feat() function for use by "cppc_cpufreq" to check if any CPU implements ARM's Activity Monitor Unit (AMU). If AMU is available, then for re-constructing the current CPU freq from its counters, queue work on target CPU to read the counters in a single call instead of reading them in separate smp calls.
Signed-off-by: Sumit Gupta <sumitg@nvidia.com> --- arch/arm64/kernel/cpufeature.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c index d9345e9c0226..ec31da7043eb 100644 --- a/arch/arm64/kernel/cpufeature.c +++ b/arch/arm64/kernel/cpufeature.c @@ -1917,6 +1917,7 @@ int get_cpu_with_amu_feat(void) { return cpumask_any(&amu_cpus); } +EXPORT_SYMBOL_GPL(get_cpu_with_amu_feat); static void cpu_amu_enable(struct arm64_cpu_capabilities const *cap) { -- 2.17.1
| ![\](/images/icornerr.gif) |