rtl8188eu: Remove wrapper around semaphore 'up'

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger 2014-12-12 22:51:56 -06:00
parent 545d963a9e
commit 609fff0d67
5 changed files with 6 additions and 12 deletions

View file

@ -238,7 +238,7 @@ u32 rtw_enqueue_cmd(struct cmd_priv *pcmdpriv, struct cmd_obj *cmd_obj)
res = _rtw_enqueue_cmd(&pcmdpriv->cmd_queue, cmd_obj); res = _rtw_enqueue_cmd(&pcmdpriv->cmd_queue, cmd_obj);
if (res == _SUCCESS) if (res == _SUCCESS)
_rtw_up_sema(&pcmdpriv->cmd_queue_sema); up(&pcmdpriv->cmd_queue_sema);
exit: exit:
@ -258,7 +258,7 @@ void rtw_cmd_clr_isr(struct cmd_priv *pcmdpriv)
{ {
pcmdpriv->cmd_done_cnt++; pcmdpriv->cmd_done_cnt++;
/* _rtw_up_sema(&(pcmdpriv->cmd_done_sema)); */ /* up(&(pcmdpriv->cmd_done_sema)); */
} }
@ -297,7 +297,7 @@ int rtw_cmd_thread(void *context)
pcmdbuf = pcmdpriv->cmd_buf; pcmdbuf = pcmdpriv->cmd_buf;
pcmdpriv->cmdthd_running = true; pcmdpriv->cmdthd_running = true;
_rtw_up_sema(&pcmdpriv->terminate_cmdthread_sema); up(&pcmdpriv->terminate_cmdthread_sema);
RT_TRACE(_module_rtl871x_cmd_c_, _drv_info_, ("start r871x rtw_cmd_thread !!!!\n")); RT_TRACE(_module_rtl871x_cmd_c_, _drv_info_, ("start r871x rtw_cmd_thread !!!!\n"));
@ -383,7 +383,7 @@ post_process:
rtw_free_cmd_obj(pcmd); rtw_free_cmd_obj(pcmd);
} while (1); } while (1);
_rtw_up_sema(&pcmdpriv->terminate_cmdthread_sema); up(&pcmdpriv->terminate_cmdthread_sema);
thread_exit(); thread_exit();
} }

View file

@ -268,7 +268,6 @@ void rtw_list_delete(struct list_head *plist);
void _rtw_init_sema(struct semaphore *sema, int init_val); void _rtw_init_sema(struct semaphore *sema, int init_val);
void _rtw_free_sema(struct semaphore *sema); void _rtw_free_sema(struct semaphore *sema);
void _rtw_up_sema(struct semaphore *sema);
u32 _rtw_down_sema(struct semaphore *sema); u32 _rtw_down_sema(struct semaphore *sema);
void _rtw_mutex_init(struct mutex *pmutex); void _rtw_mutex_init(struct mutex *pmutex);
void _rtw_mutex_free(struct mutex *pmutex); void _rtw_mutex_free(struct mutex *pmutex);

View file

@ -114,7 +114,7 @@ static inline void _enter_pwrlock(struct semaphore *plock)
static inline void _exit_pwrlock(struct semaphore *plock) static inline void _exit_pwrlock(struct semaphore *plock)
{ {
_rtw_up_sema(plock); up(plock);
} }
#define LPS_DELAY_TIME 1*HZ /* 1 sec */ #define LPS_DELAY_TIME 1*HZ /* 1 sec */

View file

@ -771,7 +771,7 @@ void rtw_stop_drv_threads(struct adapter *padapter)
RT_TRACE(_module_os_intfs_c_, _drv_info_, ("+rtw_stop_drv_threads\n")); RT_TRACE(_module_os_intfs_c_, _drv_info_, ("+rtw_stop_drv_threads\n"));
/* Below is to termindate rtw_cmd_thread & event_thread... */ /* Below is to termindate rtw_cmd_thread & event_thread... */
_rtw_up_sema(&padapter->cmdpriv.cmd_queue_sema); up(&padapter->cmdpriv.cmd_queue_sema);
if (padapter->cmdThread) if (padapter->cmdThread)
_rtw_down_sema(&padapter->cmdpriv.terminate_cmdthread_sema); _rtw_down_sema(&padapter->cmdpriv.terminate_cmdthread_sema);

View file

@ -164,11 +164,6 @@ void _rtw_free_sema(struct semaphore *sema)
{ {
} }
void _rtw_up_sema(struct semaphore *sema)
{
up(sema);
}
u32 _rtw_down_sema(struct semaphore *sema) u32 _rtw_down_sema(struct semaphore *sema)
{ {
if (down_interruptible(sema)) if (down_interruptible(sema))