zd1211rw: move async iowrite16v up to callers
authorJussi Kivilinna <jussi.kivilinna@mbnet.fi>
Sat, 12 Feb 2011 18:43:42 +0000 (20:43 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 14 Feb 2011 20:51:21 +0000 (15:51 -0500)
commit8662b2518ff7995002378058488326ef7cb80de8
treee7b0d1c7fca5820a46ac2411a5b4a8e36f8779c4
parenteefdbec1ea8b7093d2c09d1825f68438701723cf
zd1211rw: move async iowrite16v up to callers

Writing beacon to device happen through multiple write command calls.
zd_usb_iowrite16v uses synchronous urb call and with multiple write
commands in row causes high CPU usage.

Make asynchronous zd_usb_iowrite16v_async available outside zd_usb.c
and use where possible.

This lower CPU usage from ~10% to ~2% on Intel Atom when running
AP-mode with 100 TU beacon interval.

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/zd1211rw/zd_chip.c
drivers/net/wireless/zd1211rw/zd_usb.c
drivers/net/wireless/zd1211rw/zd_usb.h