[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230724062547.GK2370@thinkpad>
Date: Mon, 24 Jul 2023 11:55:47 +0530
From: Manivannan Sadhasivam <manivannan.sadhasivam@...aro.org>
To: Viresh Kumar <viresh.kumar@...aro.org>
Cc: Viresh Kumar <vireshk@...nel.org>, Nishanth Menon <nm@...com>,
Stephen Boyd <sboyd@...nel.org>, linux-pm@...r.kernel.org,
Vincent Guittot <vincent.guittot@...aro.org>,
"Rafael J. Wysocki" <rafael@...nel.org>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 5/6] OPP: Update _read_freq() to return the correct
frequency
On Fri, Jul 21, 2023 at 03:10:58PM +0530, Viresh Kumar wrote:
> Now that we support finding indexed frequencies, lets update
> _read_freq() to return the right one.
>
> Signed-off-by: Viresh Kumar <viresh.kumar@...aro.org>
Acked-by: Manivannan Sadhasivam <manivannan.sadhasivam@...aro.org>
- Mani
> ---
> drivers/opp/core.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/opp/core.c b/drivers/opp/core.c
> index 7b1d5724b3d8..95f49fbe431c 100644
> --- a/drivers/opp/core.c
> +++ b/drivers/opp/core.c
> @@ -472,7 +472,7 @@ EXPORT_SYMBOL_GPL(dev_pm_opp_get_opp_count);
> /* Helpers to read keys */
> static unsigned long _read_freq(struct dev_pm_opp *opp, int index)
> {
> - return opp->rates[0];
> + return opp->rates[index];
> }
>
> static unsigned long _read_level(struct dev_pm_opp *opp, int index)
> --
> 2.31.1.272.g89b43f80a514
>
--
மணிவண்ணன் சதாசிவம்
Powered by blists - more mailing lists