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)
commit7034764a1e4a6edbb60914e89aad8384e3fe5d17
treeb12ca30409bb79882cc25cae16beeeed236d4b9c
parentb83c1899a0e98cabd0997531434e1fb3b6574db8
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