]> Pileus Git - ~andy/linux/commit
rt2x00: Optimize calls to rt2x00queue_get_queue
authorHelmut Schaa <helmut.schaa@googlemail.com>
Thu, 3 Mar 2011 18:38:55 +0000 (19:38 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 4 Mar 2011 19:06:46 +0000 (14:06 -0500)
commit11f818e0eb50864c7e6f8af38d8f8822f992906a
tree25e5da8f41a1304240c164d26128805e42cf7832
parentadde5882bc6c21de7ee80ee15dfd58c7e9a472ac
rt2x00: Optimize calls to rt2x00queue_get_queue

In some cases (tx path for example) we don't need to check for non-tx
queues in rt2x00queue_get_queue. Hence, introduce a new method
rt2x00queue_get_tx_queue that is only valid for tx queues and use it in
places where only tx queues are valid.

Furthermore, this new method is quite short and as such can be inlined
to avoid the function call overhead.

This only converts the txdone functions of drivers that don't use an ATIM
queue and the generic tx path.

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2800lib.c
drivers/net/wireless/rt2x00/rt2800pci.c
drivers/net/wireless/rt2x00/rt2x00.h
drivers/net/wireless/rt2x00/rt2x00mac.c
drivers/net/wireless/rt2x00/rt61pci.c
drivers/net/wireless/rt2x00/rt73usb.c