iwlwifi: speed up event log dumps
authorBen Cahill <ben.m.cahill@intel.com>
Fri, 6 Nov 2009 22:52:58 +0000 (14:52 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 11 Nov 2009 20:23:46 +0000 (15:23 -0500)
commite585447189123de627ecbfaccab9d7a3328a5dd8
tree024a18c68f57e0f0d23a5cdf2987b769c0b5a6f4
parent84c4069232a671b3739387949d5cb588dacbd24a
iwlwifi: speed up event log dumps

Take advantage of device's auto-increment for SRAM reads to eliminate extra
write address accesses.

Grab/release NIC access before/after entire read sequence, rather than for
each read individually.

After a quick check of dmesg logs, this seems to double Event Log dump speed,
reducing from about 20 milliseconds to about 10 milliseconds for 512 entries
using 3945.

Signed-off-by: Ben Cahill <ben.m.cahill@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-agn.c
drivers/net/wireless/iwlwifi/iwl3945-base.c