Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Jul 2019 16:38:40 +0000 (UTC)
From:      Johannes Lundberg <johalun@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r350085 - stable/12/sys/compat/linuxkpi/common/include/asm
Message-ID:  <201907171638.x6HGcemr093419@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: johalun
Date: Wed Jul 17 16:38:40 2019
New Revision: 350085
URL: https://svnweb.freebsd.org/changeset/base/350085

Log:
  MFC r349276:
  LinuxKPI: Add atomic_long_sub macro.
  
  Reviewed by:	imp (mentor), hps
  Approved by:	imp (mentor), hps
  MFC after:	1 week
  Differential Revision:	D20718

Modified:
  stable/12/sys/compat/linuxkpi/common/include/asm/atomic-long.h
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/compat/linuxkpi/common/include/asm/atomic-long.h
==============================================================================
--- stable/12/sys/compat/linuxkpi/common/include/asm/atomic-long.h	Wed Jul 17 16:38:29 2019	(r350084)
+++ stable/12/sys/compat/linuxkpi/common/include/asm/atomic-long.h	Wed Jul 17 16:38:40 2019	(r350085)
@@ -42,6 +42,7 @@ typedef struct {
 } atomic_long_t;
 
 #define	atomic_long_add(i, v)		atomic_long_add_return((i), (v))
+#define	atomic_long_sub(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_add_unless((v), 1, 0)
 



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