rtl8188eu: Remove most semaphore wrappers

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger 2018-12-21 21:20:04 -06:00
parent cbfa6220ef
commit 4b2c469f5f
13 changed files with 37 additions and 75 deletions

View file

@ -256,9 +256,6 @@ extern void rtw_mfree2d(void *pbuf, int h, int w, int size);
extern void list_del_init(_list *plist);
extern void _rtw_init_sema(_sema *sema, int init_val);
extern void _rtw_free_sema(_sema *sema);
extern void _rtw_up_sema(_sema *sema);
extern u32 _rtw_down_sema(_sema *sema);
extern void _rtw_mutex_init(_mutex *pmutex);
extern void _rtw_mutex_free(_mutex *pmutex);

View file

@ -153,12 +153,11 @@ typedef _sema _pwrlock;
__inline static void _init_pwrlock(_pwrlock *plock)
{
_rtw_init_sema(plock, 1);
sema_init(plock, 1);
}
__inline static void _free_pwrlock(_pwrlock *plock)
{
_rtw_free_sema(plock);
}
@ -170,7 +169,7 @@ __inline static void _enter_pwrlock(_pwrlock *plock)
__inline static void _exit_pwrlock(_pwrlock *plock)
{
_rtw_up_sema(plock);
up(plock);
}
#define LPS_DELAY_TIME 1*HZ /* 1 sec */