Re: [PATCH] average: change to declare precision, not factor

From
David Miller <davem@davemloft.net>
Date
2017-02-15 17:54:03
From: Johannes Berg <johannes@sipsolutions.net>
Date: Wed, 15 Feb 2017 09:49:26 +0100
From: Johannes Berg <redacted>

Declaring the factor is counter-intuitive, and people are prone
to using small(-ish) values even when that makes no sense.

Change the DECLARE_EWMA() macro to take the fractional precision,
in bits, rather than a factor, and update all users.

While at it, add some more documentation.

Signed-off-by: Johannes Berg <redacted>
---
Unless I hear any objections, I will take this through my tree.
Acked-by: David S. Miller <davem@davemloft.net>
Thread (1 message) 1 message, 1 author, last reply 2017-02-15
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help