* Re: Re: [PATCH v6 5/8] PM / devfreq: tegra: remove operating-points
@ 2015-03-18 7:43 MyungJoo Ham
0 siblings, 0 replies; only message in thread
From: MyungJoo Ham @ 2015-03-18 7:43 UTC (permalink / raw)
To: Tomeu Vizoso
Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Mikko Perttunen, 박경민, Stephen Warren,
Thierry Reding, Alexandre Courbot,
linux-pm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> On 18 March 2015 at 06:23, MyungJoo Ham <myungjoo.ham@samsung.com> wrote:
> >> As the DT bindings don't have an operating-points property any more,
> >> build the OPP table from the frequencies supported by the EMC clock.
> >>
> >> Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
> >> ---
[]
> >>
> >> + for (rate = 0; rate <= tegra->max_freq * KHZ; rate++) {
> >> + rate = clk_round_rate(tegra->emc_clock, rate);
> >> + dev_pm_opp_add(&pdev->dev, rate, 0);
> >> + }
> >> +
> >
> > Although I am not going to NACK for the single-time performance of a
> > single device driver for a device that I do not have or fully understand,
> > please note that you may be wasting several billion cycles unless
> > your product is running at MHZ/kHZ level.
> >
> > What is going on with this loop? Do you really have such a virtually-continuous
> > frequency scaling in your product? (Wow.... but in such a case, I don't think
> > OPP is appropriate.)
>
> Actually, that loop is expected to only execute as many times as
> frequencies are supported by the clock. This is using knowledge of the
> clock always rounding up when possible, which I think is fine in this
> case.
Ah. ok. you are using "clk_frac_div_round_rate" of
drivers/clk/tegra/clk-divider.c (DIV_ROUND_UP)
Great. Thanks for the clarification.
Cheers,
MyungJoo
>
> Regards,
>
> Tomeu
>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-03-18 7:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-18 7:43 Re: [PATCH v6 5/8] PM / devfreq: tegra: remove operating-points MyungJoo Ham
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).