]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: reduce CPU usage by tracking highest_queued_prio
authorMarc Yang <yangyang@marvell.com>
Tue, 17 May 2011 02:17:50 +0000 (19:17 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 19 May 2011 17:53:55 +0000 (13:53 -0400)
commitbf440faec73d31119f3ad6827373bf55ad6eaa59
tree9f07fc3f7cad6d11fe00adeb8f177f1d1536539f
parent70ce8295cc030610cf5233dfd3985db8c8d6f8cd
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