|
@@ -170,23 +170,6 @@ static inline void _cancel_workitem_sync(struct work_struct *pwork)
|
|
|
{
|
|
|
cancel_work_sync(pwork);
|
|
|
}
|
|
|
-/* */
|
|
|
-/* Global Mutex: can only be used at PASSIVE level. */
|
|
|
-/* */
|
|
|
-
|
|
|
-#define ACQUIRE_GLOBAL_MUTEX(_MutexCounter) \
|
|
|
-{ \
|
|
|
- while (atomic_inc_return((atomic_t *)&(_MutexCounter)) != 1)\
|
|
|
- { \
|
|
|
- atomic_dec((atomic_t *)&(_MutexCounter)); \
|
|
|
- msleep(10); \
|
|
|
- } \
|
|
|
-}
|
|
|
-
|
|
|
-#define RELEASE_GLOBAL_MUTEX(_MutexCounter) \
|
|
|
-{ \
|
|
|
- atomic_dec((atomic_t *)&(_MutexCounter)); \
|
|
|
-}
|
|
|
|
|
|
static inline int rtw_netif_queue_stopped(struct net_device *pnetdev)
|
|
|
{
|