aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/cppc_cpufreq.c
diff options
context:
space:
mode:
authorPierre Gondois <[email protected]>2022-04-26 14:44:48 +0000
committerRafael J. Wysocki <[email protected]>2022-05-11 17:15:14 +0000
commitc9d8923bfbcb63f15ea6cb2b5c8426fc3d96f643 (patch)
tree09e7d95f0fc446624eca78b0bf76c991cf3e9037 /drivers/cpufreq/cppc_cpufreq.c
parentpowercap: DTPM: Check for Energy Model type (diff)
downloadkernel-c9d8923bfbcb63f15ea6cb2b5c8426fc3d96f643.tar.gz
kernel-c9d8923bfbcb63f15ea6cb2b5c8426fc3d96f643.zip
PM: EM: Decrement policy counter
In commit e458716a92b57 ("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: e458716a92b57 ("PM: EM: Mark inefficiencies in CPUFreq") Tested-by: Cristian Marussi <[email protected]> Signed-off-by: Pierre Gondois <[email protected]> Reviewed-by: Vincent Donnefort <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'drivers/cpufreq/cppc_cpufreq.c')
0 files changed, 0 insertions, 0 deletions