]> git.baikalelectronics.ru Git - kernel.git/commit
opp: Add apis to retrieve opps with interconnect bandwidth
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Wed, 4 May 2022 08:17:32 +0000 (10:17 +0200)
committerViresh Kumar <viresh.kumar@linaro.org>
Wed, 4 May 2022 10:08:06 +0000 (15:38 +0530)
commiteaf9d1bed173caddc7b55f0b57ed8caf5187b2ad
tree9fb2fccf28d53878d742920a8b62f3087a14ad93
parentdf770514114a8535ea37aac379f67f90f37987d6
opp: Add apis to retrieve opps with interconnect bandwidth

Add dev_pm_opp_find_bw_ceil and dev_pm_opp_find_bw_floor to retrieve opps
based on interconnect associated with the opp and bandwidth. The index
variable is the index of the interconnect as specified in the opp table
in Devicetree.

Co-developed-by: Thara Gopinath <thara.gopinath@linaro.org>
Signed-off-by: Thara Gopinath <thara.gopinath@linaro.org>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/opp/core.c
include/linux/pm_opp.h