]> git.baikalelectronics.ru Git - kernel.git/commit
PM / OPP: Add 'struct kref' to struct dev_pm_opp
authorViresh Kumar <viresh.kumar@linaro.org>
Mon, 23 Jan 2017 04:41:46 +0000 (10:11 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 30 Jan 2017 08:22:21 +0000 (09:22 +0100)
commitdfd0d50e1809a6beed13d484676cc573bd9241b7
treeb12ca30409bb79882cc25cae16beeeed236d4b9c
parentbca59efc1e2d200afdbef95057300b971f11a9e9
PM / OPP: Add 'struct kref' to struct dev_pm_opp

Add kref to struct dev_pm_opp for easier accounting of the OPPs.

Note that the OPPs are freed under the opp_table->lock mutex only.

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
include/linux/pm_opp.h