]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6a8489fb12ce52292c7a6b7fba33ff562d3fd241
treef26471abf34316fc58ea9fbb19e5eaba2f4f0d78
parent221806eac02d9d1b38cce86991df22ff36b67f7b
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