Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e86a0dbb authored by Viresh Kumar's avatar Viresh Kumar Committed by Alex Shi
Browse files

PM / OPP mark OPPs as 'static' or 'dynamic'



Static OPPs are the ones created from Device Tree entries and dynamic are the
ones created at runtime by calling dev_pm_opp_add().

There is a need to distinguish them as we need to free static OPPs from cpufreq
drivers when they are removed.

So, add another field 'dynamic' in 'struct dev_pm_opp' to keep this information.

Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
(cherry picked from commit 38393409da345cd48d94a0e74c7bbc3402742882)
Signed-off-by: default avatarAlex Shi <alex.shi@linaro.org>
parent d4ed66e6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment