Re: [PATCH v3] PM / OPP: optimize dev_pm_opp_set_rate() performance a bit

2016-07-25 Thread Viresh Kumar
On 25-07-16, 14:11, Jisheng Zhang wrote: > 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

[PATCH v3] PM / OPP: optimize dev_pm_opp_set_rate() performance a bit

2016-07-24 Thread Jisheng Zhang
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