]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: qcom-cpufreq-hw: Fix throttle frequency value on EPSS platforms
authorVladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
Fri, 1 Apr 2022 07:14:24 +0000 (10:14 +0300)
committerViresh Kumar <viresh.kumar@linaro.org>
Mon, 4 Apr 2022 06:31:29 +0000 (12:01 +0530)
commit2f94c4f710fe2b3aa6ba5b382ecc7956bd6b1c0f
tree85aa9d3792815b2a2dcf9700da8c4a95ef0ecb30
parent4c6980638483a8072f0101c28cf6e5e3b964594f
cpufreq: qcom-cpufreq-hw: Fix throttle frequency value on EPSS platforms

On QCOM platforms with EPSS flavour of cpufreq IP a throttled frequency is
obtained from another register REG_DOMAIN_STATE, thus the helper function
qcom_lmh_get_throttle_freq() should be modified accordingly, as for now
it returns gibberish since .reg_current_vote is unset for EPSS hardware.

To exclude a hardcoded magic number 19200 it is replaced by "xo" clock rate
in KHz.

Fixes: 1269323de7d0 ("cpufreq: qcom-cpufreq-hw: Add dcvs interrupt support")
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/qcom-cpufreq-hw.c