Skip to content
Commit c971e179 authored by Pierre Gondois's avatar Pierre Gondois Committed by Deepak Kumar Mishra
Browse files

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.

Fixes: a1eb080a ("cpufreq: qcom-hw: provide online/offline operations")
Signed-off-by: Pierre Gondois's avatarPierre Gondois <pierre.gondois@arm.com>

# Conflicts:
#	drivers/cpufreq/qcom-cpufreq-hw.c
parent 80916807
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment