cpufreq arm fixes for 5.18-rc5

- Fix issues with the Qualcomm's cpufreq driver (Dmitry Baryshkov and
  Vladimir Zapolskiy).
- Fix memory leak with the Sun501 driver (Xiaobing Luo).
cpufreq: qcom-cpufreq-hw: Clear dcvs interrupts

It's noted that dcvs interrupts are not self-clearing, thus an interrupt
handler runs constantly, which leads to a severe regression in runtime.
To fix the problem an explicit write to clear interrupt register is
required, note that on OSM platforms the register may not be present.

Fixes: 275157b367f4 ("cpufreq: qcom-cpufreq-hw: Add dcvs interrupt support")
Signed-off-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
1 file changed