aboutsummaryrefslogtreecommitdiffstats
path: root/include/sys/atomic.h
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2014-10-01 16:31:11 -0400
committerBrian Behlendorf <[email protected]>2014-10-17 15:11:50 -0700
commitff0582cb395a8fd9be61926023a3923b9a908cc2 (patch)
tree5e1a1a4ed30f1dc0791a925a479897951e3e519f /include/sys/atomic.h
parent82f2f1a3af28d8ceadab53aeba3e94ab02138f85 (diff)
Remove atomic64_xchg() wrappers
The atomic64_xchg() and atomic64_cmpxchg() functions have been available since Linux 2.6.24. There is no longer a need to maintain this compatibility code. Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'include/sys/atomic.h')
-rw-r--r--include/sys/atomic.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/include/sys/atomic.h b/include/sys/atomic.h
index e034f2e2c..07b460ef7 100644
--- a/include/sys/atomic.h
+++ b/include/sys/atomic.h
@@ -29,14 +29,6 @@
#include <linux/spinlock.h>
#include <sys/types.h>
-#ifndef HAVE_ATOMIC64_CMPXCHG
-#define atomic64_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n)))
-#endif
-
-#ifndef HAVE_ATOMIC64_XCHG
-#define atomic64_xchg(v, n) (xchg(&((v)->counter), n))
-#endif
-
/*
* Two approaches to atomic operations are implemented each with its
* own benefits are drawbacks imposed by the Solaris API. Neither