Date: Sat, 17 Feb 2018 22:45:16 +0000 (UTC) From: Hans Petter Selasky <hselasky@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r329477 - head/sys/compat/linuxkpi/common/include/linux Message-ID: <201802172245.w1HMjGRD009853@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <johalun0@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; \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802172245.w1HMjGRD009853>