summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mwifiex/main.h
diff options
context:
space:
mode:
authorMarc Yang2011-05-17 04:17:52 +0200
committerJohn W. Linville2011-05-19 19:53:57 +0200
commit17e8cec87586c26b953c6541c8a045e906ea046c (patch)
treeabdb7b38d69370d7a326ef6f6d0f0e5afaf8c7dc /drivers/net/wireless/mwifiex/main.h
parentmwifiex: check mwifiex_wmm_lists_empty() before dequeue (diff)
downloadkernel-qcow2-linux-17e8cec87586c26b953c6541c8a045e906ea046c.tar.gz
kernel-qcow2-linux-17e8cec87586c26b953c6541c8a045e906ea046c.tar.xz
kernel-qcow2-linux-17e8cec87586c26b953c6541c8a045e906ea046c.zip
mwifiex: CPU mips optimization with NO_PKT_PRIO_TID
If we go through the entire for loop in mwifiex_wmm_get_highest_priolist_ptr() and don't find any packets, set highest_queued_prio to NO_PKT_PRIO_TID (< LOW_PRIO_TID). 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>
Diffstat (limited to 'drivers/net/wireless/mwifiex/main.h')
-rw-r--r--drivers/net/wireless/mwifiex/main.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/mwifiex/main.h b/drivers/net/wireless/mwifiex/main.h
index ea3184d15674..3154b0a31ea6 100644
--- a/drivers/net/wireless/mwifiex/main.h
+++ b/drivers/net/wireless/mwifiex/main.h
@@ -202,6 +202,7 @@ struct mwifiex_tid_tbl {
#define WMM_HIGHEST_PRIORITY 7
#define HIGH_PRIO_TID 7
#define LOW_PRIO_TID 0
+#define NO_PKT_PRIO_TID (-1)
struct mwifiex_wmm_desc {
struct mwifiex_tid_tbl tid_tbl_ptr[MAX_NUM_TID];