average: Clarify the restrictions
PATCH 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]>
--- include/linux/average.h | 4 ++++ 1 file changed, 4 insertions(+)
include/linux/average.h +4 -0
@@ -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. *
Signature · 1 line
2.34.1
Quoted 14 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]>--- include/linux/average.h | 4 ++++ 1 file changed, 4 insertions(+)include/linux/average.h +0
-0
include/linux/average.h line 16
Quoted 4 lines
include/linux/average.h +1
-0@@ -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
include/linux/average.h line 18
Quoted 2 lines
include/linux/average.h +2
-0+* 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