mwifiex: reduce CPU usage by tracking tx_pkts_queued
authorMarc Yang <yangyang@marvell.com>
Tue, 17 May 2011 02:17:49 +0000 (19:17 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 19 May 2011 17:53:55 +0000 (13:53 -0400)
commitf699254c7126d7df94491dfd4c3648f8ec0c0d51
tree8df2829d738771c9915c728ac4a8e1b051fcd7c0
parent7176ba23f8b589b1df3229574ff46fb904ce9ec5
mwifiex: reduce CPU usage by tracking tx_pkts_queued

This patch adds tx_pkts_queued to track number of packets being
enqueued & dequeued so that mwifiex_wmm_lists_empty() evaluation
is lightweight.

Signed-off-by: Marc Yang <yangyang@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/11n_aggr.c
drivers/net/wireless/mwifiex/main.h
drivers/net/wireless/mwifiex/wmm.c