linux-sg2042/drivers/base/power/opp
Jisheng Zhang 067b7ce083 PM / OPP: optimize dev_pm_opp_set_rate() performance a bit
In dev_pm_opp_set_rate(), _find_opp_table() is called 4 times: once by
_get_opp_clk(), once by dev_pm_opp_set_rate() itself, and twice by
dev_pm_opp_find_freq_ceil(). If there are several opp_tables in the
system, three times of opp table finding is a big waste. This patch
reduced the call of _find_opp_table() to twice.

Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2016-07-28 23:54:16 +02:00
..
Makefile PM / OPP: Move CONFIG_OF dependent code in a separate file 2016-05-06 13:22:49 +02:00
core.c PM / OPP: optimize dev_pm_opp_set_rate() performance a bit 2016-07-28 23:54:16 +02:00
cpu.c PM / OPP: Add 'UNKNOWN' status for shared_opp in struct opp_table 2016-06-16 15:50:36 +02:00
debugfs.c PM / OPP: Rename structures for clarity 2016-02-21 14:24:35 +01:00
of.c PM / OPP: Add 'UNKNOWN' status for shared_opp in struct opp_table 2016-06-16 15:50:36 +02:00
opp.h PM / OPP: Add 'UNKNOWN' status for shared_opp in struct opp_table 2016-06-16 15:50:36 +02:00