]> git.baikalelectronics.ru Git - kernel.git/commit
rt2x00: use DECLARE_EWMA
authorJohannes Berg <johannes.berg@intel.com>
Wed, 19 Aug 2015 07:46:21 +0000 (09:46 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Aug 2015 21:10:22 +0000 (14:10 -0700)
commit6b947a15ca5923a55658929be585a2fb54fc740d
tree4a9f1194d1dc5160bd094ec6718ee0fecb4c494a
parentab2d840bec20ba09112989dcb4aeb2011e8ff4d9
rt2x00: use DECLARE_EWMA

Instead of using the out-of-line EWMA calculation, use DECLARE_EWMA()
to create static inlines. On x86/64 this results in code that's one
byte larger (for me), but reduces struct link_ant and struct link
size by the two unsigned long values that store the parameters each.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wireless/rt2x00/Kconfig
drivers/net/wireless/rt2x00/rt2x00.h
drivers/net/wireless/rt2x00/rt2x00link.c