]> asedeno.scripts.mit.edu Git - linux.git/commit
opp: Make dev_pm_opp_set_rate() handle freq = 0 to drop performance votes
authorRajendra Nayak <rnayak@codeaurora.org>
Wed, 20 Mar 2019 09:49:09 +0000 (15:19 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Mon, 17 Jun 2019 04:21:31 +0000 (09:51 +0530)
commitcd7ea582866f43324f3d60f0d4daac05e08f0f41
tree94e61b00cd519eb374ddc84c62daef7fbdef6738
parentb3e3759ee4abd72bedbf4b109ff1749d3aea6f21
opp: Make dev_pm_opp_set_rate() handle freq = 0 to drop performance votes

For devices with performance state, we use dev_pm_opp_set_rate() to set
the appropriate clk rate and the performance state.

We do need a way to remove the performance state vote when we idle the
device and turn the clocks off. Use dev_pm_opp_set_rate() with freq = 0
to achieve this.

Signed-off-by: Rajendra Nayak <rnayak@codeaurora.org>
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
[ Viresh: Updated _set_required_opps() to handle the !opp case ]
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/opp/core.c