]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit15a0e3fcd74d1a81107d103ed91482b28d4ceb48
treeacaf242fb38292ed5c4c401beb375126c40bb033
parent261f52b4cf9e4cff3408b728f282e1da6881173a
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