]> asedeno.scripts.mit.edu Git - linux.git/commit
PM / OPP: Don't use OPP structure outside of rcu protected section
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 1 Dec 2016 10:58:16 +0000 (16:28 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 6 Dec 2016 01:27:58 +0000 (02:27 +0100)
commitdc39d06fcd7a4a82d72eae7b71e94e888b96d29e
tree04f21672abaa37c78df542b32dca24b4997965f3
parent579c49efdf5a04869b29891e46cde0ed4df5480a
PM / OPP: Don't use OPP structure outside of rcu protected section

The OPP structure must not be used out of the rcu protected section.
Cache the values to be used in separate variables instead.

Cc: 4.6+ <stable@vger.kernel.org> # 4.6+
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Tested-by: Dave Gerlach <d-gerlach@ti.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/opp/core.c