rtl8188eu: Remove CONFIG_RECV_THREAD_MODE - not defined

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger 2013-07-20 16:43:17 -05:00
parent c4b448935f
commit bf279c9001
4 changed files with 0 additions and 27 deletions

View file

@ -116,11 +116,6 @@ _func_exit_;
void rtw_mfree_recv_priv_lock(struct recv_priv *precvpriv) void rtw_mfree_recv_priv_lock(struct recv_priv *precvpriv)
{ {
_rtw_spinlock_free(&precvpriv->lock); _rtw_spinlock_free(&precvpriv->lock);
#ifdef CONFIG_RECV_THREAD_MODE
_rtw_free_sema(&precvpriv->recv_sema);
_rtw_free_sema(&precvpriv->terminate_recvthread_sema);
#endif
_rtw_spinlock_free(&precvpriv->free_recv_queue.lock); _rtw_spinlock_free(&precvpriv->free_recv_queue.lock);
_rtw_spinlock_free(&precvpriv->recv_pending_queue.lock); _rtw_spinlock_free(&precvpriv->recv_pending_queue.lock);

View file

@ -57,11 +57,6 @@ int rtl8188eu_init_recv_priv(_adapter *padapter)
int i, res = _SUCCESS; int i, res = _SUCCESS;
struct recv_buf *precvbuf; 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, tasklet_init(&precvpriv->recv_tasklet,
(void(*)(unsigned long))rtl8188eu_recv_tasklet, (void(*)(unsigned long))rtl8188eu_recv_tasklet,
(unsigned long)padapter); (unsigned long)padapter);

View file

@ -194,11 +194,6 @@ using enter_critical section to protect
struct recv_priv struct recv_priv
{ {
_lock lock; _lock lock;
#ifdef CONFIG_RECV_THREAD_MODE
_sema recv_sema;
_sema terminate_recvthread_sema;
#endif
_queue free_recv_queue; _queue free_recv_queue;
_queue recv_pending_queue; _queue recv_pending_queue;
_queue uc_swdec_pending_queue; _queue uc_swdec_pending_queue;

View file

@ -945,12 +945,6 @@ u32 rtw_start_drv_threads(_adapter *padapter)
RT_TRACE(_module_os_intfs_c_,_drv_info_,("+rtw_start_drv_threads\n")); 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"); padapter->cmdThread = kthread_run(rtw_cmd_thread, padapter, "RTW_CMD_THREAD");
if (IS_ERR(padapter->cmdThread)) if (IS_ERR(padapter->cmdThread))
_status = _FAIL; _status = _FAIL;
@ -983,12 +977,6 @@ void rtw_stop_drv_threads (_adapter *padapter)
} }
#endif #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); rtw_hal_stop_thread(padapter);
} }