Convert in-kernel thread_lock_flags calls to thread_lock when debug is disabled
The flags argument is not used in this case.
This commit is contained in:
parent
67f9bba460
commit
0057ac8761
@ -145,8 +145,14 @@ void _thread_lock(struct thread *);
|
||||
_thread_lock((tdp))
|
||||
#endif
|
||||
|
||||
#if LOCK_DEBUG > 0
|
||||
#define thread_lock_flags(tdp, opt) \
|
||||
thread_lock_flags_((tdp), (opt), __FILE__, __LINE__)
|
||||
#else
|
||||
#define thread_lock_flags(tdp, opt) \
|
||||
_thread_lock(tdp)
|
||||
#endif
|
||||
|
||||
#define thread_unlock(tdp) \
|
||||
mtx_unlock_spin((tdp)->td_lock)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user