]> www.infradead.org Git - users/jedix/linux-maple.git/commit
opp: core: implement dev_pm_opp_get_bw
authorNeil Armstrong <neil.armstrong@linaro.org>
Tue, 19 Nov 2024 17:56:36 +0000 (18:56 +0100)
committerViresh Kumar <viresh.kumar@linaro.org>
Mon, 23 Dec 2024 10:57:22 +0000 (16:27 +0530)
commitb89c0ed09e1189217cd9d516b739627c523d53a4
treecd0173bae19164550f358eb4f87e8b58554c8ef9
parent40384c840ea1944d7c5a392e8975ed088ecf0b37
opp: core: implement dev_pm_opp_get_bw

Add and implement dev_pm_opp_get_bw() to retrieve the OPP's
bandwidth in the same way as the dev_pm_opp_get_voltage() helper.

Retrieving bandwidth is required in the case of the Adreno GPU
where the GPU Management Unit can handle the Bandwidth scaling.

The helper can get the peak or average bandwidth for any of
the interconnect path.

Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
[ Viresh: Fixed commit log and a comment in code ]
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/opp/core.c
include/linux/pm_opp.h