linux/drivers/opp
Viresh Kumar 0ad8c62390 OPP: Don't take OPP table's kref for static OPPs
The reference count is only required to be incremented for every call
that may lead to adding the OPP table. For static OPPs the same should
be done from the parent routine which adds all static OPPs together and
so only one refcount for all static OPPs.

Update code to reflect that.

The refcount is incremented every time a dynamic OPP is created (as that
can lead to creating the OPP table) and the same is dropped when the OPP
is removed.

Tested-by: Niklas Cassel <niklas.cassel@linaro.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2018-09-19 14:56:43 -07:00
..
core.c OPP: Don't take OPP table's kref for static OPPs 2018-09-19 14:56:43 -07:00
cpu.c OPP: Protect dev_list with opp_table lock 2018-09-19 14:56:40 -07:00
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 OPP: Parse OPP table's DT properties from _of_init_opp_table() 2018-09-19 14:56:42 -07:00
opp.h OPP: Parse OPP table's DT properties from _of_init_opp_table() 2018-09-19 14:56:42 -07:00
ti-opp-supply.c treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00