Author: hselasky Date: Sat Feb 17 22:45:15 2018 New Revision: 329477 URL: https://svnweb.freebsd.org/changeset/base/329477
Log: Implement spin_trylock_irq() function macro in the LinuxKPI. MFC after: 1 week Submitted by: Johannes Lundberg <johal...@gmail.com> Sponsored by: Mellanox Technologies Modified: head/sys/compat/linuxkpi/common/include/linux/spinlock.h Modified: head/sys/compat/linuxkpi/common/include/linux/spinlock.h ============================================================================== --- head/sys/compat/linuxkpi/common/include/linux/spinlock.h Sat Feb 17 22:41:20 2018 (r329476) +++ head/sys/compat/linuxkpi/common/include/linux/spinlock.h Sat Feb 17 22:45:15 2018 (r329477) @@ -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; \ _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"