mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-28 19:20:30 +00:00
powercap: DTPM: Fix missing cpufreq_cpu_put() calls
commitbdefd9913bupstream. The policy returned by cpufreq_cpu_get() has to be released with the help of cpufreq_cpu_put() to balance its kobject reference counter properly. Add the missing calls to cpufreq_cpu_put() in the code. Fixes:0aea2e4ec2("powercap/dtpm_cpu: Reset per_cpu variable in the release function") Fixes:0e8f68d7f0("powercap/drivers/dtpm: Add CPU energy model based support") Cc: v5.16+ <stable@vger.kernel.org> # v5.16+ Signed-off-by: Lukasz Luba <lukasz.luba@arm.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
686cc4de09
commit
4132cc3a3a
1 changed files with 13 additions and 4 deletions
Loading…
Add table
Add a link
Reference in a new issue