diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2023-10-18 08:17:02 +0200 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2023-10-19 13:50:10 +0200 |
commit | d724f4a4581b2910ce79b45bd353ee66e7cf9d7f (patch) | |
tree | 7c2d36abf97329b59c8fbf566b5cc95fccb5d417 /drivers/platform | |
parent | PM / devfreq: rockchip-dfi: Pass private data struct to internal functions (diff) | |
download | linux-d724f4a4581b2910ce79b45bd353ee66e7cf9d7f.tar.xz linux-d724f4a4581b2910ce79b45bd353ee66e7cf9d7f.zip |
PM / devfreq: rockchip-dfi: Prepare for multiple users
When adding perf support later the DFI must be enabled when
either of devfreq-event or perf is active. Prepare for that
by adding a usage counter for the DFI. Also move enabling
and disabling of the clock away from the devfreq-event specific
functions to which the perf specific part won't have access.
Link: https://lore.kernel.org/all/20231018061714.3553817-15-s.hauer@pengutronix.de/
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Diffstat (limited to 'drivers/platform')
0 files changed, 0 insertions, 0 deletions