Date: Wed, 3 Sep 2014 08:24:11 +0000 (UTC) From: Xin LI <delphij@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r271003 - stable/10/sys/cddl/compat/opensolaris/sys Message-ID: <201409030824.s838OBs9089127@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: delphij Date: Wed Sep 3 08:24:11 2014 New Revision: 271003 URL: http://svnweb.freebsd.org/changeset/base/271003 Log: MFC r270260: Provide compatibility shim for atomic_dec_64_nv. Modified: stable/10/sys/cddl/compat/opensolaris/sys/atomic.h Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/cddl/compat/opensolaris/sys/atomic.h ============================================================================== --- stable/10/sys/cddl/compat/opensolaris/sys/atomic.h Wed Sep 3 08:21:21 2014 (r271002) +++ stable/10/sys/cddl/compat/opensolaris/sys/atomic.h Wed Sep 3 08:24:11 2014 (r271003) @@ -117,6 +117,12 @@ atomic_inc_64_nv(volatile uint64_t *targ return (atomic_add_64_nv(target, 1)); } +static __inline uint64_t +atomic_dec_64_nv(volatile uint64_t *target) +{ + return (atomic_add_64_nv(target, -1)); +} + #if !defined(COMPAT_32BIT) && defined(__LP64__) static __inline void * atomic_cas_ptr(volatile void *target, void *cmp, void *newval)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201409030824.s838OBs9089127>