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

2016-07-24 Thread Jisheng Zhang
On Mon, 25 Jul 2016 13:19:47 +0800 Jisheng Zhang wrote: > Dear all, > > On Fri, 22 Jul 2016 22:30:53 +0800 kbuild test robot wrote: > > > Hi, > > > > [auto build test WARNING on pm/linux-next] > > [also build test WARNING on v4.7-rc7 next-20160722] > > [if your patch is applied to the wrong git

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

2016-07-24 Thread Jisheng Zhang
Dear all, On Fri, 22 Jul 2016 22:30:53 +0800 kbuild test robot wrote: > Hi, > > [auto build test WARNING on pm/linux-next] > [also build test WARNING on v4.7-rc7 next-20160722] > [if your patch is applied to the wrong git tree, please drop us a note to > help improve the system] > > url: >

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

2016-07-24 Thread Jisheng Zhang
Dear Viresh, On Fri, 22 Jul 2016 09:21:51 -0700 Viresh Kumar wrote: > On 22-07-16, 20:42, Jisheng Zhang wrote: > > static int _set_opp_voltage(struct device *dev, struct regulator *reg, > > unsigned long u_volt, unsigned long u_volt_min, > > unsig

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

2016-07-22 Thread Viresh Kumar
On 22-07-16, 20:42, Jisheng Zhang wrote: > static int _set_opp_voltage(struct device *dev, struct regulator *reg, > unsigned long u_volt, unsigned long u_volt_min, > unsigned long u_volt_max) > @@ -586,9 +565,24 @@ int dev_pm_opp_set_rate(struct

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

2016-07-22 Thread kbuild test robot
Hi, [auto build test WARNING on pm/linux-next] [also build test WARNING on v4.7-rc7 next-20160722] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Jisheng-Zhang/PM-OPP-optimize-dev_pm_opp_set_rat

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

2016-07-22 Thread Jisheng Zhang
In dev_pm_opp_set_rate(), _find_opp_table() is called three times: once by _get_opp_clk(), 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 only once. Signed-off