Changeset 4118

Show
Ignore:
Timestamp:
01/31/10 08:01:47 (2 years ago)
Author:
proski
Message:

Use sema_init() instead of init_MUTEX()

init_MUTEX() is missing on kernels with realtime patches. Besides,
init_MUTEX is a confusing name, since it initializes a semaphore,
whereas newer kernels have real mutexes as well.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • madwifi/trunk/ath/if_athvar.h

    r4109 r4118  
    991991#endif 
    992992/* Protects the device from concurrent accesses */ 
    993 #define ATH_LOCK_INIT(_sc)              init_MUTEX(&(_sc)->sc_lock
     993#define ATH_LOCK_INIT(_sc)              sema_init(&(_sc)->sc_lock, 1
    994994#define ATH_LOCK_DESTROY(_sc) 
    995995#define ATH_LOCK(_sc)                   down(&(_sc)->sc_lock)