cpufreq: qcom-cpufreq-hw: Clear dcvs interrupts
authorVladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
Thu, 7 Apr 2022 20:09:19 +0000 (23:09 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 May 2022 07:14:37 +0000 (09:14 +0200)
commitabff341ac2f9177a2045a9d12af41a54f678c67f
treecdadd70b2bdbe6518c77c7754eecbf20dd94feec
parent7356c1f0ae47f61a6d92b7b2732f50dabfb0830a
cpufreq: qcom-cpufreq-hw: Clear dcvs interrupts

[ Upstream commit e4e6448638a01905faeda9bf96aa9df7c8ef463c ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/cpufreq/qcom-cpufreq-hw.c