svn commit: r210908 - projects/ofed/head/sys/ofed/include/asm
Jeff Roberson
jeff at FreeBSD.org
Fri Aug 6 02:17:58 UTC 2010
Author: jeff
Date: Fri Aug 6 02:17:58 2010
New Revision: 210908
URL: http://svn.freebsd.org/changeset/base/210908
Log:
- Linux atomic_set is really atomic_store in bsd.
Sponsored by: Isilon Systems, iX Systems, and Panasas.
Modified:
projects/ofed/head/sys/ofed/include/asm/atomic-long.h
projects/ofed/head/sys/ofed/include/asm/atomic.h
Modified: projects/ofed/head/sys/ofed/include/asm/atomic-long.h
==============================================================================
--- projects/ofed/head/sys/ofed/include/asm/atomic-long.h Fri Aug 6 02:17:32 2010 (r210907)
+++ projects/ofed/head/sys/ofed/include/asm/atomic-long.h Fri Aug 6 02:17:58 2010 (r210908)
@@ -48,7 +48,7 @@ atomic_long_add_return(long i, atomic_lo
static inline void
atomic_long_set(atomic_long_t *v, long i)
{
- atomic_set_long(&v->counter, i);
+ atomic_store_rel_long(&v->counter, i);
}
static inline long
Modified: projects/ofed/head/sys/ofed/include/asm/atomic.h
==============================================================================
--- projects/ofed/head/sys/ofed/include/asm/atomic.h Fri Aug 6 02:17:32 2010 (r210907)
+++ projects/ofed/head/sys/ofed/include/asm/atomic.h Fri Aug 6 02:17:58 2010 (r210908)
@@ -61,7 +61,7 @@ atomic_sub_return(int i, atomic_t *v)
static inline void
atomic_set(atomic_t *v, int i)
{
- atomic_set_int(&v->counter, i);
+ atomic_store_rel_int(&v->counter, i);
}
static inline int
More information about the svn-src-projects
mailing list