Skip to content
Commit c9d8923b authored by Pierre Gondois's avatar Pierre Gondois Committed by Rafael J. Wysocki
Browse files

PM: EM: Decrement policy counter



In commit e458716a ("PM: EM: Mark inefficiencies in CPUFreq"),
cpufreq_cpu_get() is called without a cpufreq_cpu_put(), permanently
increasing the reference counts of the policy struct.

Decrement the reference count once the policy struct is not used
anymore.

Fixes: e458716a ("PM: EM: Mark inefficiencies in CPUFreq")
Tested-by: default avatarCristian Marussi <cristian.marussi@arm.com>
Signed-off-by: default avatarPierre Gondois <pierre.gondois@arm.com>
Reviewed-by: default avatarVincent Donnefort <vincent.donnefort@arm.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 985a6770
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment