summaryrefslogtreecommitdiff
path: root/include/linux/arch_topology.h
diff options
context:
space:
mode:
authorIonela Voinescu <ionela.voinescu@arm.com>2020-03-05 09:06:25 +0000
committerCatalin Marinas <catalin.marinas@arm.com>2020-03-06 16:02:50 +0000
commitbbce8eaa603236bf958b0d24e6377b3f3b623991 (patch)
tree496e87419e608317e2ac43a45ca53b66dbcdebc1 /include/linux/arch_topology.h
parent6abde90881a5ea3a383c0959fdd7f575f95db4b3 (diff)
downloadlwn-bbce8eaa603236bf958b0d24e6377b3f3b623991.tar.gz
lwn-bbce8eaa603236bf958b0d24e6377b3f3b623991.zip
cpufreq: add function to get the hardware max frequency
Add weak function to return the hardware maximum frequency of a CPU, with the default implementation returning cpuinfo.max_freq, which is the best information we can generically get from the cpufreq framework. The default can be overwritten by a strong function in platforms that want to provide an alternative implementation, with more accurate information, obtained either from hardware or firmware. Signed-off-by: Ionela Voinescu <ionela.voinescu@arm.com> Reviewed-by: Valentin Schneider <valentin.schneider@arm.com> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Cc: Viresh Kumar <viresh.kumar@linaro.org> Cc: Rafael J. Wysocki <rjw@rjwysocki.net> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'include/linux/arch_topology.h')
0 files changed, 0 insertions, 0 deletions