Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Feb 2018 10:29:44 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r329965 - stable/11/sys/compat/linuxkpi/common/include/linux
Message-ID:  <201802251029.w1PATia5013380@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Sun Feb 25 10:29:43 2018
New Revision: 329965
URL: https://svnweb.freebsd.org/changeset/base/329965

Log:
  MFC r329477:
  Implement spin_trylock_irq() function macro in the LinuxKPI.
  
  Submitted by:	Johannes Lundberg <johalun0@gmail.com>
  Sponsored by:	Mellanox Technologies

Modified:
  stable/11/sys/compat/linuxkpi/common/include/linux/spinlock.h
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/compat/linuxkpi/common/include/linux/spinlock.h
==============================================================================
--- stable/11/sys/compat/linuxkpi/common/include/linux/spinlock.h	Sun Feb 25 10:28:52 2018	(r329964)
+++ stable/11/sys/compat/linuxkpi/common/include/linux/spinlock.h	Sun Feb 25 10:29:43 2018	(r329965)
@@ -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?201802251029.w1PATia5013380>