mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
linuxkpi: Add __mutex_init
Same as mutex_init, the lock_class_key argument seems to be only used for debug in Linux, simply ignore it for now. Needed by DRM in Linux v5.3 Sponsored-by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D24848
This commit is contained in:
parent
7708d3d765
commit
d003cc4318
1 changed files with 3 additions and 0 deletions
|
|
@ -108,6 +108,9 @@ mutex_trylock_recursive(struct mutex *lock)
|
|||
#define mutex_init(_m) \
|
||||
linux_mutex_init(_m, mutex_name(#_m), SX_NOWITNESS)
|
||||
|
||||
#define __mutex_init(_m, _n, _l) \
|
||||
linux_mutex_init(_m, _n, SX_NOWITNESS)
|
||||
|
||||
#define mutex_init_witness(_m) \
|
||||
linux_mutex_init(_m, mutex_name(#_m), SX_DUPOK)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue