aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/compat/linuxkpi/common/include/linux/spinlock.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/spinlock.h b/sys/compat/linuxkpi/common/include/linux/spinlock.h
index dbd7a5a9e5ed..d88d2009c6cd 100644
--- a/sys/compat/linuxkpi/common/include/linux/spinlock.h
+++ b/sys/compat/linuxkpi/common/include/linux/spinlock.h
@@ -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; \