tools include: Introduce atomic_cmpxchg_{relaxed,release}()
tip-bot for Arnaldo Carvalho de Melo
merge botCommit-ID: 2bcdeadbc094b4f6511aedea1e5b8052bf0cc89c Gitweb: http://git.kernel.org/tip/2bcdeadbc094b4f6511aedea1e5b8052bf0cc89c Author: Arnaldo Carvalho de Melo <[email protected]> AuthorDate: Wed, 22 Feb 2017 16:57:53 -0300 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitDate: Fri, 3 Mar 2017 19:07:14 -0300
tools include: Introduce atomic_cmpxchg_{relaxed,release}()
Will be used by refcnt.h
Cc Adrian Hunter <[email protected]>
Cc David Ahern <[email protected]>
Cc Elena Reshetova <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Wang Nan <[email protected]>
Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
--- tools/include/linux/atomic.h | 6 ++++++ 1 file changed, 6 insertions(+)
tools/include/linux/atomic.h +6 -0
@@ -3,4 +3,10 @@#include <asm/atomic.h> +/* atomic_cmpxchg_relaxed */ +#ifndef atomic_cmpxchg_relaxed +#define atomic_cmpxchg_relaxed atomic_cmpxchg +#define atomic_cmpxchg_release atomic_cmpxchg +#endif /* atomic_cmpxchg_relaxed */ +#endif /* __TOOLS_LINUX_ATOMIC_H */