mwifiex: reduce CPU usage by tracking highest_queued_prio
commit49729ff616547d7abcb96924d14aa860320e7352
authorMarc Yang <yangyang@marvell.com>
Tue, 17 May 2011 02:17:50 +0000 (16 19:17 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 19 May 2011 17:53:55 +0000 (19 13:53 -0400)
tree9f07fc3f7cad6d11fe00adeb8f177f1d1536539f
parentf699254c7126d7df94491dfd4c3648f8ec0c0d51
mwifiex: reduce CPU usage by tracking highest_queued_prio

This patch adds highest_queued_prio to track priority of packets as
they are enqueued so that mwifiex_wmm_get_highest_priolist_ptr()
starts checking at the first level where we have packets, instead of
the highest. The function also lowers priority value to the level
where first packet is found.

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/main.h
drivers/net/wireless/mwifiex/wmm.c