summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBeata Michalska <beata.michalska@arm.com>2025-01-31 19:24:36 +0300
committerCatalin Marinas <catalin.marinas@arm.com>2025-02-17 21:09:20 +0300
commit38e480d4fcac2e191e2f24f381aa8957865c49b2 (patch)
tree3576ed5a036e86f398d97dae82dc0847291d6b76 /include
parent004b500a9031973ba0d05edca860193f9a5938df (diff)
downloadlinux-38e480d4fcac2e191e2f24f381aa8957865c49b2.tar.xz
cpufreq: Allow arch_freq_get_on_cpu to return an error
Allow arch_freq_get_on_cpu to return an error for cases when retrieving current CPU frequency is not possible, whether that being due to lack of required arch support or due to other circumstances when the current frequency cannot be determined at given point of time. Signed-off-by: Beata Michalska <beata.michalska@arm.com> Reviewed-by: Prasanna Kumar T S M <ptsm@linux.microsoft.com> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Acked-by: Rafael J. Wysocki <rafael@kernel.org> Link: https://lore.kernel.org/r/20250131162439.3843071-2-beata.michalska@arm.com Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/cpufreq.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h
index 7fe0981a7e46..02fd4746231d 100644
--- a/include/linux/cpufreq.h
+++ b/include/linux/cpufreq.h
@@ -1184,7 +1184,7 @@ static inline int of_perf_domain_get_sharing_cpumask(int pcpu, const char *list_
}
#endif
-extern unsigned int arch_freq_get_on_cpu(int cpu);
+extern int arch_freq_get_on_cpu(int cpu);
#ifndef arch_set_freq_scale
static __always_inline