mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jui-Tse Huang <juitse.huang@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: Jui-Tse Huang <juitse.huang@gmail.com>,
	Mark Rutland <mark.rutland@arm.com>,
	Johannes Berg <johannes.berg@intel.com>,
	Bruno Randolf <br1@einfach.org>,
	Randy Dunlap <rdunlap@infradead.org>,
	Ching-Chun Huang <jserv@ccns.ncku.edu.tw>
Subject: [PATCH v3] average: Clarify the restrictions
Date: Thu,  2 Jun 2022 14:43:07 +0800	[thread overview]
Message-ID: <20220602064307.18049-1-juitse.huang@gmail.com> (raw)

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>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
---

Notes:
    v3: fix typo (Randy Dunlap)
    v2: fix spelling and wording (Bruno Randolf)

 include/linux/average.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/include/linux/average.h b/include/linux/average.h
index a1a8f09631ce..9c3c8b5b518e 100644
--- a/include/linux/average.h
+++ b/include/linux/average.h
@@ -11,7 +11,10 @@
  *
  * This implements a fixed-precision EWMA algorithm, with both the
  * precision and fall-off coefficient determined at compile-time
- * and built into the generated helper funtions.
+ * and built into the generated helper functions.
+ *
+ * This implementation supports up to 30 bits of precision, and only
+ * the API for fetching non-fractional part is provided for now.
  *
  * The first argument to the macro is the name that will be used
  * for the struct and helper functions.
-- 
2.34.1


             reply	other threads:[~2022-06-02  6:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-02  6:43 Jui-Tse Huang [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-06-02  1:45 Jui-Tse Huang
2022-06-02  4:41 ` Randy Dunlap

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=20220602064307.18049-1-juitse.huang@gmail.com \
    --to=juitse.huang@gmail.com \
    --cc=br1@einfach.org \
    --cc=johannes.berg@intel.com \
    --cc=jserv@ccns.ncku.edu.tw \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=rdunlap@infradead.org \
    /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®