[<prev] [next>] [day] [month] [year] [list]
Message-ID: <tip-jszriruqfqpez1bkivwfj6qb@git.kernel.org>
Date: Mon, 6 Mar 2017 23:28:57 -0800
From: tip-bot for Arnaldo Carvalho de Melo <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: jolsa@...nel.org, mingo@...nel.org, linux-kernel@...r.kernel.org,
tglx@...utronix.de, namhyung@...nel.org, hpa@...or.com,
adrian.hunter@...el.com, acme@...hat.com, wangnan0@...wei.com,
elena.reshetova@...el.com, dsahern@...il.com
Subject: [tip:perf/core] tools include: Introduce
atomic_cmpxchg_{relaxed,release}()
Commit-ID: 2bcdeadbc094b4f6511aedea1e5b8052bf0cc89c
Gitweb: http://git.kernel.org/tip/2bcdeadbc094b4f6511aedea1e5b8052bf0cc89c
Author: Arnaldo Carvalho de Melo <acme@...hat.com>
AuthorDate: Wed, 22 Feb 2017 16:57:53 -0300
Committer: Arnaldo Carvalho de Melo <acme@...hat.com>
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 <adrian.hunter@...el.com>
Cc: David Ahern <dsahern@...il.com>
Cc: Elena Reshetova <elena.reshetova@...el.com>
Cc: Jiri Olsa <jolsa@...nel.org>
Cc: Namhyung Kim <namhyung@...nel.org>
Cc: Wang Nan <wangnan0@...wei.com>
Link: http://lkml.kernel.org/n/tip-jszriruqfqpez1bkivwfj6qb@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@...hat.com>
---
tools/include/linux/atomic.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tools/include/linux/atomic.h b/tools/include/linux/atomic.h
index 4e3d3d1..9f21fc2 100644
--- a/tools/include/linux/atomic.h
+++ b/tools/include/linux/atomic.h
@@ -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 */
Powered by blists - more mailing lists