OSDN Git Service

Remove msleep() wrapper
[android-x86/external-modules-rtl8723au.git] / os_dep / osdep_service.c
index 4392dba..c6b543b 100644 (file)
@@ -97,25 +97,6 @@ void _rtw_mfree(u8 *pbuf, u32 sz)
 }
 
 
-void   _rtw_mutex_init(_mutex *pmutex)
-{
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37))
-       mutex_init(pmutex);
-#else
-       init_MUTEX(pmutex);
-#endif
-}
-
-void   _rtw_mutex_free(_mutex *pmutex);
-void   _rtw_mutex_free(_mutex *pmutex)
-{
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37))
-       mutex_destroy(pmutex);
-#else
-#endif
-}
-
-
 void   _rtw_init_queue(_queue  *pqueue)
 {
        INIT_LIST_HEAD(&(pqueue->queue));
@@ -183,11 +164,6 @@ void rtw_sleep_schedulable(int ms)
 }
 
 
-void rtw_msleep_os(int ms)
-{
-       msleep((unsigned int)ms);
-}
-
 void rtw_usleep_os(int us)
 {
       // msleep((unsigned int)us);
@@ -310,56 +286,6 @@ inline void rtw_lock_suspend_timeout(long timeout)
 }
 #endif //CONFIG_WOWLAN
 
-inline void ATOMIC_SET(ATOMIC_T *v, int i)
-{
-       atomic_set(v,i);
-}
-
-inline int ATOMIC_READ(ATOMIC_T *v)
-{
-       return atomic_read(v);
-}
-
-inline void ATOMIC_ADD(ATOMIC_T *v, int i)
-{
-       atomic_add(i,v);
-}
-inline void ATOMIC_SUB(ATOMIC_T *v, int i)
-{
-       atomic_sub(i,v);
-}
-
-inline void ATOMIC_INC(ATOMIC_T *v)
-{
-       atomic_inc(v);
-}
-
-inline void ATOMIC_DEC(ATOMIC_T *v)
-{
-       atomic_dec(v);
-}
-
-inline int ATOMIC_ADD_RETURN(ATOMIC_T *v, int i)
-{
-       return atomic_add_return(i,v);
-}
-
-inline int ATOMIC_SUB_RETURN(ATOMIC_T *v, int i)
-{
-       return atomic_sub_return(i,v);
-}
-
-inline int ATOMIC_INC_RETURN(ATOMIC_T *v)
-{
-       return atomic_inc_return(v);
-}
-
-inline int ATOMIC_DEC_RETURN(ATOMIC_T *v)
-{
-       return atomic_dec_return(v);
-}
-
-
 /*
 * Open a file with the specific @param path, @param flag, @param mode
 * @param fpp the pointer of struct file pointer to get struct file pointer while file opening is success