PM / OPP mark OPPs as 'static' or 'dynamic'
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 25 Nov 2014 10:34:18 +0000 (16:04 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 29 Nov 2014 22:53:20 +0000 (23:53 +0100)
commit38393409da345cd48d94a0e74c7bbc3402742882
treeacaf242fb38292ed5c4c401beb375126c40bb033
parenta7470db6fec481b14afea117846fce383671ba59
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: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/opp.c