]> git.baikalelectronics.ru Git - kernel.git/commit
powercap/dtpm: Destroy hierarchy function
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Sun, 30 Jan 2022 21:02:06 +0000 (22:02 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Wed, 23 Feb 2022 18:45:40 +0000 (19:45 +0100)
commite5e7dad3830e6627eef47fefcebaed33c8c5b5a7
tree905535b2150200d7b5b2e361ea035caf6de52e87
parent3fec39959f6c38ffaa11fb6ae9f6c8743d7d2121
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
drivers/powercap/dtpm.c
include/linux/dtpm.h