]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k: make private driver rate tables const
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Wed, 6 May 2009 06:20:00 +0000 (02:20 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 6 May 2009 19:15:05 +0000 (15:15 -0400)
commitc9934878330b64f0388a7172cc96bfb345d3a793
tree4dcea1285bdfe15a9a22e88097a3e8e7c9b57b8d
parent2f25585c15aff89c7d0c5ad11b33572cede8a0c4
ath9k: make private driver rate tables const

On x86 this allows us to do the following small savings:
shave off 23 % off of the module's data, and
shave off 6  % off of the module's text.

We save 456 bytes, for those counting.

$ size ath9k.ko
   text    data     bss     dec     hex filename
 250794    3628    1600  256022   3e816 ath9k.ko
$ size ath9k-old.ko
   text    data     bss     dec     hex filename
 239114   15308    1600  256022   3e816 ath9k-old.ko

$ du -b ath9k.ko
4034244 ath9k.ko
$ du -b ath9k-old.ko
4033788 ath9k-old.ko

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ath9k.h
drivers/net/wireless/ath/ath9k/beacon.c
drivers/net/wireless/ath/ath9k/hw.c
drivers/net/wireless/ath/ath9k/hw.h
drivers/net/wireless/ath/ath9k/main.c
drivers/net/wireless/ath/ath9k/rc.c
drivers/net/wireless/ath/ath9k/xmit.c