diff options
author | Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> | 2024-12-05 22:20:28 +0530 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2024-12-23 16:26:49 +0530 |
commit | 85d8b11351a8f15d6ec7a5e97909861cb3b6bcec (patch) | |
tree | db44a861ffc4540b1b3fc5d3d5eb04205136fc74 /net/lapb/lapb_timer.c | |
parent | 1a4ddf6ab9dde8a7e1e025c44745862705636b2f (diff) | |
download | linux-85d8b11351a8f15d6ec7a5e97909861cb3b6bcec.tar.gz linux-85d8b11351a8f15d6ec7a5e97909861cb3b6bcec.tar.bz2 linux-85d8b11351a8f15d6ec7a5e97909861cb3b6bcec.zip |
cpufreq: qcom: Fix qcom_cpufreq_hw_recalc_rate() to query LUT if LMh IRQ is not available
Currently, qcom_cpufreq_hw_recalc_rate() returns the LMh throttled
frequency for the domain even if LMh IRQ is not available. But as per
qcom_cpufreq_hw_get(), the driver has to query LUT entries to get the
actual frequency of the domain. So do the same in
qcom_cpufreq_hw_recalc_rate().
While doing so, refactor the existing qcom_cpufreq_hw_get() function so
that qcom_cpufreq_hw_recalc_rate() can make use of the existing code and
avoid code duplication. This also requires setting the
qcom_cpufreq_data::policy even if LMh IRQ is not available.
Fixes: 4370232c727b ("cpufreq: qcom-hw: Add CPU clock provider support")
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions