From: Stephen Boyd <sboyd@codeaurora.org>
To: Lars-Peter Clausen <lars@metafoo.de>
Cc: Michael Turquette <mturquette@baylibre.com>, linux-clk@vger.kernel.org
Subject: Re: [PATCH 2/2] clk: axi-clkgen: Round closest in round_rate() and recalc_rate()
Date: Thu, 21 Dec 2017 18:08:31 -0800 [thread overview]
Message-ID: <20171222020831.GI7997@codeaurora.org> (raw)
In-Reply-To: <20170905093241.18582-2-lars@metafoo.de>
On 09/05, Lars-Peter Clausen wrote:
> To minimize the rounding error round to the closest integer when
> calculating the result in the recalc_rate() and set_rate() callbacks.
>
> Also in order to improve precision multiply first and then divide.
>
> Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
> ---
Applied to clk-next
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
next prev parent reply other threads:[~2017-12-22 2:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-05 9:32 [PATCH 1/2] clk: axi-clkgen: Correctly handle nocount bit in recalc_rate() Lars-Peter Clausen
2017-09-05 9:32 ` [PATCH 2/2] clk: axi-clkgen: Round closest in round_rate() and recalc_rate() Lars-Peter Clausen
2017-12-22 2:08 ` Stephen Boyd [this message]
2017-12-22 2:08 ` [PATCH 1/2] clk: axi-clkgen: Correctly handle nocount bit in recalc_rate() Stephen Boyd
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171222020831.GI7997@codeaurora.org \
--to=sboyd@codeaurora.org \
--cc=lars@metafoo.de \
--cc=linux-clk@vger.kernel.org \
--cc=mturquette@baylibre.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.