PM / OPP: Don't expose srcu_head to register notifiers
authorViresh Kumar <viresh.kumar@linaro.org>
Mon, 2 Jan 2017 09:11:03 +0000 (14:41 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 27 Jan 2017 10:49:09 +0000 (11:49 +0100)
commitdc2c9ad52af45ebecf9743aacb1916ebb2f1e848
tree41001b1691bdad8d1b52a63561ffa9659d5412bd
parent3aa26a3b2ea63c4d09420e74421370655aa1cf8f
PM / OPP: Don't expose srcu_head to register notifiers

Let the OPP core provide helpers to register notifiers for any device,
instead of exposing srcu_head outside of the core.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: MyungJoo Ham <myungjoo.ham@samsung.com>
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/devfreq/devfreq.c
include/linux/pm_opp.h