Messages in this thread Patch in this message | | | From | Jui-Tse Huang <> | Subject | [PATCH] average: Clarify the restrictions | Date | Wed, 1 Jun 2022 14:57:46 +0800 |
| |
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
| |