PM / devfreq: Add required OPPs support to passive governor
authorSaravana Kannan <saravanak@google.com>
Thu, 4 Feb 2021 08:14:24 +0000 (16:14 +0800)
committerViresh Kumar <viresh.kumar@linaro.org>
Thu, 4 Feb 2021 11:18:16 +0000 (16:48 +0530)
commit86ad9a24f21ea7aac7deed06fe9556392568d88a
tree3c6ad046c9a92edb4a763d1a4d2b30f7682d1200
parent26f9c7cc42a6dc036edf871544fd0e6b3a0601c1
PM / devfreq: Add required OPPs support to passive governor

Look at the required OPPs of the "parent" device to determine the OPP that
is required from the slave device managed by the passive governor. This
allows having mappings between a parent device and a slave device even when
they don't have the same number of OPPs.

While at it do a minor spell-fix and remove out label.

Signed-off-by: Saravana Kannan <saravanak@google.com>
Acked-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org>
[ Viresh: Rearranged code and clean error paths ]
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/devfreq/governor_passive.c