Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 May 2016 11:44:46 +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: r300491 - head/sys/compat/linuxkpi/common/include/asm
Message-ID:  <201605231144.u4NBikhD004954@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Mon May 23 11:44:46 2016
New Revision: 300491
URL: https://svnweb.freebsd.org/changeset/base/300491

Log:
  Add support for atomic_long_inc_not_zero() to the LinuxKPI.
  
  Obtained from:	kmacy @
  MFC after:	1 week
  Sponsored by:	Mellanox Technologies

Modified:
  head/sys/compat/linuxkpi/common/include/asm/atomic-long.h

Modified: head/sys/compat/linuxkpi/common/include/asm/atomic-long.h
==============================================================================
--- head/sys/compat/linuxkpi/common/include/asm/atomic-long.h	Mon May 23 11:41:35 2016	(r300490)
+++ head/sys/compat/linuxkpi/common/include/asm/atomic-long.h	Mon May 23 11:44:46 2016	(r300491)
@@ -41,6 +41,7 @@ typedef struct {
 
 #define	atomic_long_add(i, v)		atomic_long_add_return((i), (v))
 #define	atomic_long_inc_return(v)	atomic_long_add_return(1, (v))
+#define	atomic_long_inc_not_zero(v)	atomic_long_inc_not_zero(v)
 
 static inline long
 atomic_long_add_return(long i, atomic_long_t *v)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605231144.u4NBikhD004954>