aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorHelmut Schaa <[email protected]>2011-03-28 13:30:36 +0200
committerJohn W. Linville <[email protected]>2011-04-04 16:20:02 -0400
commitf78987cf8bb740b7a3636c08e003f1976f860cfc (patch)
treef447ca74205caebb7dc32a1bdcbfd128ec245601 /tools/perf/scripts/python
parent2e7798b7c12bdaab4a4aee76d6d1ab7c986234ac (diff)
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 <[email protected]> Acked-by: Gertjan van Wingerde <[email protected]> Signed-off-by: Ivo van Doorn <[email protected]> Signed-off-by: John W. Linville <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions