linux/drivers/opp
Viresh Kumar 5019acc693 PM / OPP: Fix shared OPP table support in dev_pm_opp_register_set_opp_helper()
It should be fine to call dev_pm_opp_register_set_opp_helper() for all
possible CPUs, even if some of them share the OPP table as the caller
may not be aware of sharing policy.

Lets increment the reference count of the OPP table and return its
pointer. The caller need to call dev_pm_opp_register_put_opp_helper()
the same number of times later on to drop all the references.

To avoid adding another counter to count how many times
dev_pm_opp_register_set_opp_helper() is called for the same OPP table,
dev_pm_opp_register_put_opp_helper() frees the resources on the very
first call made to it, assuming that the caller would be calling it
sequentially for all the CPUs. We can revisit that if that assumption is
broken in the future.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2018-05-22 17:00:10 +05:30
..
core.c PM / OPP: Fix shared OPP table support in dev_pm_opp_register_set_opp_helper() 2018-05-22 17:00:10 +05:30
cpu.c opp: cpu: Replace GFP_ATOMIC with GFP_KERNEL in dev_pm_opp_init_cpufreq_table 2018-02-12 15:07:46 +05:30
debugfs.c PM / OPP: "opp-hz" is optional for power domains 2018-05-09 10:15:18 +05:30
Kconfig
Makefile PM / OPP: Add ti-opp-supply driver 2017-12-17 19:17:44 +01:00
of.c PM / OPP: silence an uninitialized variable warning 2018-05-16 15:25:44 +05:30
opp.h PM / OPP: Remove dev_pm_opp_{un}register_get_pstate_helper() 2018-05-09 10:15:21 +05:30
ti-opp-supply.c PM / OPP: Make local function ti_opp_supply_set_opp() static 2017-12-28 12:48:16 +01:00