diff options
author | Helmut Schaa <helmut.schaa@googlemail.com> | 2011-03-28 13:30:36 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-04-04 16:20:02 -0400 |
commit | f78987cf8bb740b7a3636c08e003f1976f860cfc (patch) | |
tree | f447ca74205caebb7dc32a1bdcbfd128ec245601 /Documentation/lockstat.txt | |
parent | 2e7798b7c12bdaab4a4aee76d6d1ab7c986234ac (diff) | |
download | talos-obmc-linux-f78987cf8bb740b7a3636c08e003f1976f860cfc.tar.gz talos-obmc-linux-f78987cf8bb740b7a3636c08e003f1976f860cfc.zip |
rt2x00: Calculate tx status fifo size instead of hardcoding it
Instead of hardcoding the tx status fifo size as 512 calculate it based
on the number of tx queues and the number of entries per queue. Also
round the size up to a power of 2 as kfifo would otherwise round it
down.
On rt2800pci this will increase the kfifo size from 512 bytes to 1024
bytes which is then able to hold the tx status for all entries in all
tx queues.
Furthermore, if the number of tx queues or tx entries changes in the
future (use of the MGMT queue for example) the kfifo size doesn't need
to be updated.
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'Documentation/lockstat.txt')
0 files changed, 0 insertions, 0 deletions