Message ID | 3717ee50c1f1f48cffcb1a2e41c04e28881776d1.1530521347.git.viresh.kumar@linaro.org |
---|---|
State | New |
Headers | show |
Series | [v4.9] PM / OPP: Update voltage in case freq == old_freq | expand |
On 10-07-18, 15:59, Greg KH wrote: > On Mon, Jul 02, 2018 at 02:19:47PM +0530, Viresh Kumar wrote: > > From: Waldemar Rymarkiewicz <waldemar.rymarkiewicz@gmail.com> > > > > Original commit c5c2a97b3ac7 ("PM / OPP: Update voltage in case freq == > > old_freq"). Looking for this ^^ information ? > Always give me a hint as to what the original commit is, otherwise I > have to go dig for it :( -- viresh
diff --git a/drivers/base/power/opp/core.c b/drivers/base/power/opp/core.c index 4c7c6da7a989..0580cbe5bd1c 100644 --- a/drivers/base/power/opp/core.c +++ b/drivers/base/power/opp/core.c @@ -642,7 +642,7 @@ int dev_pm_opp_set_rate(struct device *dev, unsigned long target_freq) rcu_read_unlock(); /* Scaling up? Scale voltage before frequency */ - if (freq > old_freq) { + if (freq >= old_freq) { ret = _set_opp_voltage(dev, reg, u_volt, u_volt_min, u_volt_max); if (ret)