Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1569386 > unrolled thread
| Started by | Viresh Kumar <viresh.kumar@linaro.org> |
|---|---|
| First post | 2017-01-30 06:00 +0100 |
| Last post | 2017-01-30 06:00 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH v2 2/2] PM / devfreq: Add suspend frequency support Viresh Kumar <viresh.kumar@linaro.org> - 2017-01-30 06:00 +0100
| From | Viresh Kumar <viresh.kumar@linaro.org> |
|---|---|
| Date | 2017-01-30 06:00 +0100 |
| Subject | Re: [PATCH v2 2/2] PM / devfreq: Add suspend frequency support |
| Message-ID | <t5cem-804-15@gated-at.bofh.it> |
On Wed, Dec 28, 2016 at 5:37 PM, Chanwoo Choi <cw00.choi@samsung.com> wrote:
> +++ b/drivers/devfreq/devfreq.c
> @@ -620,6 +620,23 @@ struct devfreq *devfreq_add_device(struct device *dev,
> goto err_init;
> }
>
> + /*
> + * Get the suspend frequency from OPP table. But the devfreq device
> + * using passive governor don't need to get the suspend frequency
> + * because the passive devfreq device depend on the parent devfreq
> + * device.
> + */
> + devfreq->suspend_freq = 0L;
> + if (strncmp(devfreq->governor_name, "passive", 7)) {
> + struct dev_pm_opp *opp;
> +
> + rcu_read_lock();
> + opp = dev_pm_opp_get_suspend_opp(dev);
> + if (opp)
> + devfreq->suspend_freq = dev_pm_opp_get_freq(opp);
The interface has changed a bit recently. Can you please use below
function instead ?
dev_pm_opp_get_suspend_opp_freq()
Back to top | Article view | linux.kernel
csiph-web