cpufreq: qcom-hw: Reset cancel_throttle when policy is re-enabled
authorPierre Gondois <pierre.gondois@arm.com>
Mon, 4 Jul 2022 11:27:36 +0000 (13:27 +0200)
committerViresh Kumar <viresh.kumar@linaro.org>
Wed, 13 Jul 2022 11:23:00 +0000 (16:53 +0530)
commitcdcf8eb3e7d0557405414459c6ead0385a5c6cc7
tree8cca3d947375452260b0b1d380948366a86d8020
parent9de0d75bb379c06e6d22e4b39552069fd9c869aa
cpufreq: qcom-hw: Reset cancel_throttle when policy is re-enabled

If LMH (Limits Management Hardware) is available, when a policy is
disabled by unplugging the last online CPU of policy->cpus,
qcom_cpufreq_hw_cpu_offline() sets cancel_throttle=true.
cancel_throttle is not reset when the policy is re-enabled with any
of the CPU in policy->cpus being plugged in. So reset it.

This patch also adds an early exit check.

Signed-off-by: Pierre Gondois <pierre.gondois@arm.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/qcom-cpufreq-hw.c