rtl8188eu: Remove CONFIG_RECV_THREAD_MODE

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger 2015-03-11 13:34:16 -05:00
parent bc08957f00
commit e136a7d492
4 changed files with 0 additions and 31 deletions

View file

@ -127,13 +127,8 @@ exit:
return res;
}
void rtw_mfree_recv_priv_lock(struct recv_priv *precvpriv);
void rtw_mfree_recv_priv_lock(struct recv_priv *precvpriv)
{
#ifdef CONFIG_RECV_THREAD_MODE
_rtw_free_sema(&precvpriv->recv_sema);
_rtw_free_sema(&precvpriv->terminate_recvthread_sema);
#endif
}
void _rtw_free_recv_priv (struct recv_priv *precvpriv)

View file

@ -58,11 +58,6 @@ int rtl8188eu_init_recv_priv(struct adapter *padapter)
int i, res = _SUCCESS;
struct recv_buf *precvbuf;
#ifdef CONFIG_RECV_THREAD_MODE
_rtw_init_sema(&precvpriv->recv_sema, 0);/* will be removed */
_rtw_init_sema(&precvpriv->terminate_recvthread_sema, 0);/* will be removed */
#endif
tasklet_init(&precvpriv->recv_tasklet,
(void(*)(unsigned long))rtl8188eu_recv_tasklet,
(unsigned long)padapter);

View file

@ -200,17 +200,10 @@ struct recv_priv
{
_lock lock;
#ifdef CONFIG_RECV_THREAD_MODE
_sema recv_sema;
_sema terminate_recvthread_sema;
#endif
//_queue blk_strms[MAX_RX_NUMBLKS]; // keeping the block ack frame until return ack
_queue free_recv_queue;
_queue recv_pending_queue;
_queue uc_swdec_pending_queue;
u8 *pallocated_frame_buf;
u8 *precv_frame_buf;

View file

@ -633,12 +633,6 @@ u32 rtw_start_drv_threads(struct adapter *padapter)
RT_TRACE(_module_os_intfs_c_,_drv_info_,("+rtw_start_drv_threads\n"));
#ifdef CONFIG_RECV_THREAD_MODE
padapter->recvThread = kthread_run(rtw_recv_thread, padapter, "RTW_RECV_THREAD");
if(IS_ERR(padapter->recvThread))
_status = _FAIL;
#endif
padapter->cmdThread = kthread_run(rtw_cmd_thread, padapter, "RTW_CMD_THREAD");
if(IS_ERR(padapter->cmdThread))
_status = _FAIL;
@ -697,17 +691,9 @@ void rtw_stop_drv_threads (struct adapter *padapter)
}
#endif
#ifdef CONFIG_RECV_THREAD_MODE
/* Below is to termindate rx_thread... */
_rtw_up_sema(&padapter->recvpriv.recv_sema);
_rtw_down_sema(&padapter->recvpriv.terminate_recvthread_sema);
RT_TRACE(_module_os_intfs_c_,_drv_info_,("\n drv_halt:recv_thread can be terminated! \n"));
#endif
rtw_hal_stop_thread(padapter);
}
u8 rtw_init_default_value(struct adapter *padapter);
u8 rtw_init_default_value(struct adapter *padapter)
{
u8 ret = _SUCCESS;