On Mon, Sep 01, 2014 at 06:29:05PM +0530, Avinash Patil wrote:
> This patch adds RX work queue support to mwifiex.
> Packets received are queued to internal queue which are then
> processed by scheduling a work item for RX process.
> 
> RX work is enabled only on SMP systems.
> 
> Signed-off-by: Avinash Patil <[email protected]>
> Signed-off-by: Marc Yang <[email protected]>
> Signed-off-by: Cathy Luo <[email protected]>
> ---
>  drivers/net/wireless/mwifiex/11n_rxreorder.c | 14 ++++
>  drivers/net/wireless/mwifiex/init.c          | 19 ++++++
>  drivers/net/wireless/mwifiex/main.c          | 95 
> ++++++++++++++++++++++++++++
>  drivers/net/wireless/mwifiex/main.h          | 14 ++++
>  drivers/net/wireless/mwifiex/pcie.c          | 12 +++-
>  drivers/net/wireless/mwifiex/sdio.c          | 11 +++-
>  6 files changed, 163 insertions(+), 2 deletions(-)
> 
> [...]
> diff --git a/drivers/net/wireless/mwifiex/main.c 
> b/drivers/net/wireless/mwifiex/main.c
> index fb38d81..2ed59a0 100644
> --- a/drivers/net/wireless/mwifiex/main.c
> +++ b/drivers/net/wireless/mwifiex/main.c
> [...]
> @@ -784,6 +858,15 @@ mwifiex_add_card(void *card, struct semaphore *sem,
>       adapter->cmd_wait_q.status = 0;
>       adapter->scan_wait_q_woken = false;
>  
> +     if (num_possible_cpus() > 1) {
> +             adapter->rx_work_enabled = true;
> +             pr_debug("info: %s rx work enabled, cpus %d :\n", __func__,
> +                      num_possible_cpus());
> +             /*to ensure this is seen in dmesg logs*/
> +             pr_err("info: %s rx work enabled, cpus %d :\n", __func__,
> +                    num_possible_cpus());

Either pr_debug or pr_err, but not both.

(Would love to test, but stuck on 3.5, and don't know how to
backport mwifiex.)

-- 
James Cameron
http://quozl.linux.org.au/
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to