cpufreq: qcom-hw: Fix the frequency returned by cpufreq_driver->get()
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Thu, 17 Nov 2022 05:31:45 +0000 (11:01 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Mon, 21 Nov 2022 05:10:07 +0000 (10:40 +0530)
commitc72cf0cb1d77f6b1b58c334dcc3d09fa13111c4c
tree5075d93ffea9147486009953d7671f1cfa0626a5
parent9901c21bcaf2f01fe5078f750d624f4ddfa8f81b
cpufreq: qcom-hw: Fix the frequency returned by cpufreq_driver->get()

The cpufreq_driver->get() callback is supposed to return the current
frequency of the CPU and not the one requested by the CPUFreq core.
Fix it by returning the frequency that gets supplied to the CPU after
the DCVS operation of EPSS/OSM.

Fixes: 2849dd8bc72b ("cpufreq: qcom-hw: Add support for QCOM cpufreq HW driver")
Reported-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/qcom-cpufreq-hw.c