aboutsummaryrefslogtreecommitdiffstats
path: root/spl_config.h.in
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2009-10-30 13:53:17 -0700
committerBrian Behlendorf <[email protected]>2009-10-30 13:53:17 -0700
commit302b88e6abc3efe86411f9622b0a27a5b8b1f417 (patch)
tree1290c23f91ff930e53ab796ef6fd21fa7a0295a6 /spl_config.h.in
parent5e9b5d832b228b0628a61c9c1c9bf0b05d2fe122 (diff)
Add autoconf checks for atomic64_cmpxchg + atomic64_xchg
These functions didn't exist for all archs prior to 2.6.24. This patch addes an autoconf test to detect this and add them when needed. The autoconf check is needed instead of just an #ifndef because in the most modern kernels atomic64_{cmp}xchg are implemented as in inline function and not a #define.
Diffstat (limited to 'spl_config.h.in')
-rw-r--r--spl_config.h.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/spl_config.h.in b/spl_config.h.in
index feb09a865..409ee372d 100644
--- a/spl_config.h.in
+++ b/spl_config.h.in
@@ -33,9 +33,15 @@
/* device_create wants 5 args */
#undef HAVE_5ARGS_DEVICE_CREATE
+/* kernel defines atomic64_cmpxchg */
+#undef HAVE_ATOMIC64_CMPXCHG
+
/* kernel defines atomic64_t */
#undef HAVE_ATOMIC64_T
+/* kernel defines atomic64_xchg */
+#undef HAVE_ATOMIC64_XCHG
+
/* class_device_create() is available */
#undef HAVE_CLASS_DEVICE_CREATE