average: change to declare precision, not factor
authorJohannes Berg <johannes.berg@intel.com>
Wed, 15 Feb 2017 08:49:26 +0000 (09:49 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 2 Mar 2017 07:32:46 +0000 (08:32 +0100)
commiteb1e011a14748a1d9df9a7d7df9a5711721a1bdb
tree599710c96a23bcbc25423cb0a99696dd0b257c7b
parent48cac18ecf1de82f76259a54402c3adb7839ad01
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>
drivers/net/virtio_net.c
drivers/net/wireless/ath/ath5k/ath5k.h
drivers/net/wireless/ralink/rt2x00/rt2x00.h
include/linux/average.h
net/batman-adv/types.h
net/mac80211/ieee80211_i.h
net/mac80211/sta_info.h