commit | eb1e011a14748a1d9df9a7d7df9a5711721a1bdb | [log] [tgz] |
---|---|---|
author | Johannes Berg <johannes.berg@intel.com> | Wed Feb 15 09:49:26 2017 +0100 |
committer | Johannes Berg <johannes.berg@intel.com> | Thu Mar 02 08:32:46 2017 +0100 |
tree | 599710c96a23bcbc25423cb0a99696dd0b257c7b | |
parent | 48cac18ecf1de82f76259a54402c3adb7839ad01 [diff] |
average: change to declare precision, not factor 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. Acked-by: David S. Miller <davem@davemloft.net> Signed-off-by: Johannes Berg <johannes.berg@intel.com>