Implement spin_trylock_irq() function macro in the LinuxKPI.
MFC after: 1 week Submitted by: Johannes Lundberg <johalun0@gmail.com> Sponsored by: Mellanox Technologies
This commit is contained in:
parent
1169b94c7b
commit
9a323f25ab
@ -98,6 +98,9 @@ typedef struct {
|
||||
__ret; \
|
||||
})
|
||||
|
||||
#define spin_trylock_irq(_l) \
|
||||
spin_trylock(_l)
|
||||
|
||||
#define spin_lock_nested(_l, _n) do { \
|
||||
if (SPIN_SKIP()) \
|
||||
break; \
|
||||
|
Loading…
x
Reference in New Issue
Block a user