]> git.proxmox.com Git - mirror_spl.git/commit
Add autoconf checks for atomic64_cmpxchg + atomic64_xchg
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 30 Oct 2009 20:53:17 +0000 (13:53 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 30 Oct 2009 20:53:17 +0000 (13:53 -0700)
commit302b88e6abc3efe86411f9622b0a27a5b8b1f417
tree1290c23f91ff930e53ab796ef6fd21fa7a0295a6
parent5e9b5d832b228b0628a61c9c1c9bf0b05d2fe122
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.
config/spl-build.m4
configure
include/asm/atomic_compat.h
include/sys/atomic.h
spl_config.h.in