Skip to content

Commit 2bcdead

Browse files
committed
tools include: Introduce atomic_cmpxchg_{relaxed,release}()
Will be used by refcnt.h Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Elena Reshetova <elena.reshetova@intel.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Wang Nan <wangnan0@huawei.com> Link: http://lkml.kernel.org/n/tip-jszriruqfqpez1bkivwfj6qb@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 8a73615 commit 2bcdead

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎tools/include/linux/atomic.h‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,10 @@
33

44
#include <asm/atomic.h>
55

6+
/* atomic_cmpxchg_relaxed */
7+
#ifndef atomic_cmpxchg_relaxed
8+
#define atomic_cmpxchg_relaxed atomic_cmpxchg
9+
#define atomic_cmpxchg_release atomic_cmpxchg
10+
#endif /* atomic_cmpxchg_relaxed */
11+
612
#endif /* __TOOLS_LINUX_ATOMIC_H */

0 commit comments

Comments
 (0)