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>,
Ching-Chun Huang <jserv@ccns.ncku.edu.tw>
Subject: [PATCH] average: Clarify the restrictions
Date: Wed, 1 Jun 2022 14:57:46 +0800 [thread overview]
Message-ID: <20220601065746.18426-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>
---
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
+ * usage concern, only the api of 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
next reply other threads:[~2022-06-01 6:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-01 6:57 Jui-Tse Huang [this message]
2022-06-01 7:04 ` Bruno Randolf
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=20220601065746.18426-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 \
/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®