Search Linux Wireless

Re: [RFT] rtlwifi: use alloc_workqueue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/16/2010 01:59 PM, John W. Linville wrote:
> create_workqueue is deprecated.  The workqueue usage does not seem to
> demand any special treatment, so do not set any flags either.
> 
> Signed-off-by: John W. Linville <linville@xxxxxxxxxxxxx>
> ---
> I don't have the hardware to test...
> 
>  drivers/net/wireless/rtlwifi/base.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/net/wireless/rtlwifi/base.c b/drivers/net/wireless/rtlwifi/base.c
> index 9e860ff..24a7cd3 100644
> --- a/drivers/net/wireless/rtlwifi/base.c
> +++ b/drivers/net/wireless/rtlwifi/base.c
> @@ -225,7 +225,7 @@ static void _rtl_init_deferred_work(struct ieee80211_hw *hw)
>  
>  	/* <2> work queue */
>  	rtlpriv->works.hw = hw;
> -	rtlpriv->works.rtl_wq = create_workqueue(rtlpriv->cfg->name);
> +	rtlpriv->works.rtl_wq = alloc_workqueue(rtlpriv->cfg->name, 0, 0);
>  	INIT_DELAYED_WORK(&rtlpriv->works.watchdog_wq,
>  			  (void *)rtl_watchdog_wq_callback);
>  	INIT_DELAYED_WORK(&rtlpriv->works.ips_nic_off_wq,

After further testing, this patch is OK. The problem I saw had another source.

Add Tested-by: Larry Finger

Larry

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux