linux-stable/drivers/powercap
Daniel Lezcano c404c64d64 powercap/dtpm: Destroy hierarchy function
The hierarchy creation function exits but without a destroy hierarchy
function. Due to that, the modules creating the hierarchy can not be
unloaded properly because they don't have an exit callback.

Provide the dtpm_destroy_hierarchy() function to remove the previously
created hierarchy.

The function relies on all the release mechanisms implemented by the
underlying powercap framework.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Link: https://lore.kernel.org/r/20220130210210.549877-4-daniel.lezcano@linaro.org
2022-02-23 19:45:40 +01:00
..
dtpm.c powercap/dtpm: Destroy hierarchy function 2022-02-23 19:45:40 +01:00
dtpm_cpu.c powercap/dtpm_cpu: Reset per_cpu variable in the release function 2022-02-23 19:45:22 +01:00
dtpm_devfreq.c powercap/drivers/dtpm: Add dtpm devfreq with energy model support 2022-02-04 17:38:09 +01:00
dtpm_subsys.h powercap/drivers/dtpm: Add dtpm devfreq with energy model support 2022-02-04 17:38:09 +01:00
idle_inject.c powercap: fix typo in a comment in idle_inject.c 2021-12-17 16:30:19 +01:00
intel_rapl_common.c powercap: intel_rapl: support new layout of Psys PowerLimit Register on SPR 2021-12-17 16:13:14 +01:00
intel_rapl_msr.c powercap: Add Power Limit4 support for Alder Lake SoC 2021-08-25 20:12:16 +02:00
Kconfig powercap/drivers/dtpm: Add dtpm devfreq with energy model support 2022-02-04 17:38:09 +01:00
Makefile powercap/drivers/dtpm: Add dtpm devfreq with energy model support 2022-02-04 17:38:09 +01:00
powercap_sys.c Merge branches 'pm-sleep', 'pm-acpi', 'pm-domains' and 'powercap' 2020-12-15 15:26:14 +01:00