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:
Hans Petter Selasky 2018-02-17 22:45:15 +00:00
parent 1169b94c7b
commit 9a323f25ab

View File

@ -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; \