mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
linuxkpi: Add spin_trylock_irqsave() macro
This is needed by the drm-kmod 5.6 update.
Reviewed by: hselasky
Differential Revision: https://reviews.freebsd.org/D30706
(cherry picked from commit 086cfe4df8)
This commit is contained in:
parent
f72db34d22
commit
511bbe502e
1 changed files with 5 additions and 0 deletions
|
|
@ -104,6 +104,11 @@ typedef struct {
|
|||
#define spin_trylock_irq(_l) \
|
||||
spin_trylock(_l)
|
||||
|
||||
#define spin_trylock_irqsave(_l, flags) ({ \
|
||||
(flags) = 0; \
|
||||
spin_trylock(_l); \
|
||||
})
|
||||
|
||||
#define spin_lock_nested(_l, _n) do { \
|
||||
if (SPIN_SKIP()) \
|
||||
break; \
|
||||
|
|
|
|||
Loading…
Reference in a new issue