From: Bruno Randolf <br1@einfach.org>
To: Jui-Tse Huang <juitse.huang@gmail.com>, linux-kernel@vger.kernel.org
Cc: Mark Rutland <mark.rutland@arm.com>,
Johannes Berg <johannes.berg@intel.com>,
Ching-Chun Huang <jserv@ccns.ncku.edu.tw>
Subject: Re: [PATCH] average: Clarify the restrictions
Date: Wed, 1 Jun 2022 08:04:24 +0100 [thread overview]
Message-ID: <e3ba1b78-5047-3bb3-e1af-988c718c075b@einfach.org> (raw)
In-Reply-To: <20220601065746.18426-1-juitse.huang@gmail.com>
On 01/06/2022 07:57, Jui-Tse Huang wrote:
> There is several restrictions in the EWMA helper macro that the
> developers should take care of, but the comment does not mentioned yet,
> thus, this patch clarify the restrictions.
>
> Signed-off-by: Jui-Tse Huang <juitse.huang@gmail.com>
> ---
> include/linux/average.h | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/include/linux/average.h b/include/linux/average.h
> index a1a8f09631ce..1618f6519c3d 100644
> --- a/include/linux/average.h
> +++ b/include/linux/average.h
> @@ -13,6 +13,10 @@
> * precision and fall-off coefficient determined at compile-time
> * and built into the generated helper funtions.
> *
> + * This implementation supports upto 30 bits of precition, and for
spelling: up to ... precision
> + * usage concern, only the api of fetching non-fractional part is
> + * provided for now.
spelling: "API for"
wording: remove "and for usage concern", just ", and only the API for"
would be enough.
Thank you,
bruno
prev parent reply other threads:[~2022-06-01 7:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-01 6:57 Jui-Tse Huang
2022-06-01 7:04 ` Bruno Randolf [this message]
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=e3ba1b78-5047-3bb3-e1af-988c718c075b@einfach.org \
--to=br1@einfach.org \
--cc=johannes.berg@intel.com \
--cc=jserv@ccns.ncku.edu.tw \
--cc=juitse.huang@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®