average: Clarify the restrictions
PATCH v3 1/1 average: Clarify the restrictions
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 <[email protected]>
---
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(-)
include/linux/average.h +4 -1
@@ -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.
Signature · 1 line
2.34.1
Quoted 10 lines · Jui-Tse Huang
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 <[email protected]>---
Notes:
v3: fix typo (Randy Dunlap)
v2: fix spelling and wording (Bruno Randolf)
Acked-by Randy Dunlap <[email protected]>
Thanks.
Quoted 20 lines
include/linux/average.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)include/linux/average.h +4
-1@@ -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.
Signature · 1 line
~Randy