aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2018-02-17 22:45:15 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2018-02-17 22:45:15 +0000
commit9a323f25ab23e34ce274653da95fbdfe999be988 (patch)
tree8d9a710939982640db82c13c408dbffe86ce1eaa /sys
parent1169b94c7bba54a0c23a6896ebb48ab4be438ac6 (diff)
downloadsrc-9a323f25ab23e34ce274653da95fbdfe999be988.tar.gz
src-9a323f25ab23e34ce274653da95fbdfe999be988.zip
Implement spin_trylock_irq() function macro in the LinuxKPI.
MFC after: 1 week Submitted by: Johannes Lundberg <johalun0@gmail.com> Sponsored by: Mellanox Technologies
Notes
Notes: svn path=/head/; revision=329477
Diffstat (limited to 'sys')
-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; \