mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-07 05:53:06 +00:00
rtl8188eu: Remove most semaphore wrappers
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
cbfa6220ef
commit
4b2c469f5f
13 changed files with 37 additions and 75 deletions
|
@ -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);
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue