PM / OPP: Add per OPP table mutex
authorViresh Kumar <viresh.kumar@linaro.org>
Mon, 23 Jan 2017 04:41:41 +0000 (10:11 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 30 Jan 2017 08:22:20 +0000 (09:22 +0100)
commit37a73ec0c9bbd712d24cc2035696893e5b6119a5
treef26471abf34316fc58ea9fbb19e5eaba2f4f0d78
parentb6160e26936bcf1b9181bb34ad4f420ccd3f39f0
PM / OPP: Add per OPP table mutex

Add per OPP table lock to protect opp_table->opp_list.

Note that at few places opp_list is used under the rcu_read_lock() and
so a mutex can't be added there for now. This will be fixed by a later
patch.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/opp/core.c
drivers/base/power/opp/opp.h