Skip to content
Commit cd7ea582 authored by Rajendra Nayak's avatar Rajendra Nayak Committed by Viresh Kumar
Browse files

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: default avatarRajendra Nayak <rnayak@codeaurora.org>
Signed-off-by: default avatarStephen Boyd <swboyd@chromium.org>
[ Viresh: Updated _set_required_opps() to handle the !opp case ]
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
parent b3e3759e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment