diff options
author | Jisheng Zhang <jszhang@marvell.com> | 2016-07-25 14:11:16 +0800 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-07-28 23:54:16 +0200 |
commit | 067b7ce083df6c69e67345bdba658ab59274cc01 (patch) | |
tree | 868c5698b001c902fbad61e4afb9b8c2b1581536 /drivers/gpio/gpio-clps711x.c | |
parent | 523d939ef98fd712632d93a5a2b588e477a7565e (diff) | |
download | lwn-067b7ce083df6c69e67345bdba658ab59274cc01.tar.gz lwn-067b7ce083df6c69e67345bdba658ab59274cc01.zip |
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>
Diffstat (limited to 'drivers/gpio/gpio-clps711x.c')
0 files changed, 0 insertions, 0 deletions