diff options
author | Bing Zhao <bzhao@marvell.com> | 2012-11-05 19:59:15 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-11-14 14:56:06 -0500 |
commit | 601216e12c65e131453941962f2a8f6e49a2a379 (patch) | |
tree | ad311423f8a9f9007d451ac8a792bcc93486ebe9 | |
parent | 1993732e3bf9df032ea7582409be4f22d257a874 (diff) |
mwifiex: process RX packets in SDIO IRQ thread directly
ksdioirqd has higher priority than kworker. Process RX packets
in SDIO IRQ thread (ksdioirqd/mmcX) directly instead of deferring
the work to kworker to avoid the extra latency.
This improves TCP throughput 15~20% on an ARM platform with SDIO
2.0 controller.
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/mwifiex/main.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/mwifiex/sdio.c | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/wireless/mwifiex/main.c b/drivers/net/wireless/mwifiex/main.c index 1afcd404a10..9c802ede9c3 100644 --- a/drivers/net/wireless/mwifiex/main.c +++ b/drivers/net/wireless/mwifiex/main.c | |||
@@ -282,6 +282,7 @@ exit_main_proc: | |||
282 | mwifiex_shutdown_drv(adapter); | 282 | mwifiex_shutdown_drv(adapter); |
283 | return ret; | 283 | return ret; |
284 | } | 284 | } |
285 | EXPORT_SYMBOL_GPL(mwifiex_main_process); | ||
285 | 286 | ||
286 | /* | 287 | /* |
287 | * This function frees the adapter structure. | 288 | * This function frees the adapter structure. |
diff --git a/drivers/net/wireless/mwifiex/sdio.c b/drivers/net/wireless/mwifiex/sdio.c index 0d67333daa2..4fbbd611f63 100644 --- a/drivers/net/wireless/mwifiex/sdio.c +++ b/drivers/net/wireless/mwifiex/sdio.c | |||
@@ -905,8 +905,8 @@ static void mwifiex_interrupt_status(struct mwifiex_adapter *adapter) | |||
905 | /* | 905 | /* |
906 | * SDIO interrupt handler. | 906 | * SDIO interrupt handler. |
907 | * | 907 | * |
908 | * This function reads the interrupt status from firmware and assigns | 908 | * This function reads the interrupt status from firmware and handles |
909 | * the main process in workqueue which will handle the interrupt. | 909 | * the interrupt in current thread (ksdioirqd) right away. |
910 | */ | 910 | */ |
911 | static void | 911 | static void |
912 | mwifiex_sdio_interrupt(struct sdio_func *func) | 912 | mwifiex_sdio_interrupt(struct sdio_func *func) |
@@ -929,7 +929,7 @@ mwifiex_sdio_interrupt(struct sdio_func *func) | |||
929 | adapter->ps_state = PS_STATE_AWAKE; | 929 | adapter->ps_state = PS_STATE_AWAKE; |
930 | 930 | ||
931 | mwifiex_interrupt_status(adapter); | 931 | mwifiex_interrupt_status(adapter); |
932 | queue_work(adapter->workqueue, &adapter->main_work); | 932 | mwifiex_main_process(adapter); |
933 | } | 933 | } |
934 | 934 | ||
935 | /* | 935 | /* |