[PATCH 1/3] arm64: cpufeature: Export cpu_has_amu_feat()

Zeng Heng zengheng4 at huawei.com
Wed Oct 25 02:38:45 PDT 2023


Export the cpu_has_amu_feat() function for using by cppc_cpufreq.c to check
if the processor implements ARM's Activity Monitor Unit (AMU).

Signed-off-by: Zeng Heng <zengheng4 at huawei.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 444a73c2e638..47195e66a820 100644
--- a/arch/arm64/kernel/cpufeature.c
+++ b/arch/arm64/kernel/cpufeature.c
@@ -1935,6 +1935,7 @@ bool cpu_has_amu_feat(int cpu)
 {
 	return cpumask_test_cpu(cpu, &amu_cpus);
 }
+EXPORT_SYMBOL(cpu_has_amu_feat);
 
 int get_cpu_with_amu_feat(void)
 {
-- 
2.25.1




More information about the linux-arm-kernel mailing list