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

- From: David Miller \<davem@davemloft.net\>
- Date: 2017-02-15 17:54:03 
- List: virtualization
- Page: https://ratatoskr.run/virtualization/2017/02/15809232
- Thread: https://ratatoskr.run/virtualization/2017/02/15809232/t.md

```text
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>
```
