linux-sg2042/drivers/powercap
Lukasz Luba 4132cc3a3a powercap: DTPM: Fix missing cpufreq_cpu_put() calls
commit bdefd9913b upstream.

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>
2023-12-13 18:39:21 +01:00
..
Kconfig powercap: RAPL: Fix CONFIG_IOSF_MBI dependency 2023-07-19 16:21:00 +02:00
Makefile
dtpm.c
dtpm_cpu.c powercap: DTPM: Fix missing cpufreq_cpu_put() calls 2023-12-13 18:39:21 +01:00
dtpm_devfreq.c powercap: DTPM: Fix unneeded conversions to micro-Watts 2023-12-08 08:51:15 +01:00
dtpm_subsys.h
idle_inject.c sched: Add TASK_ANY for wait_task_inactive() 2022-09-07 21:53:49 +02:00
intel_rapl_common.c powercap: intel_rapl: Use standard Energy Unit for SPR Dram RAPL domain 2022-09-24 19:32:46 +02:00
intel_rapl_msr.c powercap: RAPL: Fix CONFIG_IOSF_MBI dependency 2023-07-19 16:21:00 +02:00
powercap_sys.c powercap: fix possible name leak in powercap_register_zone() 2023-03-10 09:32:56 +01:00