aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/perf-sys.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2015-05-07 17:14:25 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2015-05-08 15:05:06 -0400
commit4f3db0746c91453a88e302d1aac30be08ba9e52f (patch)
treed6941cfda3a35eca0c7d027de204fb3d58ca0037 /tools/perf/perf-sys.h
parent163e589d0519b6d6c1e5500f4d14b1fc10b736fe (diff)
perf tools: Move arm(64) barrier.h stuff to tools/arch/arm*/include/asm/barrier.h
We will need it for atomic.h, so move it from the ad-hoc tools/perf/ place to a tools/ subset of the kernel arch/ hierarchy. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Borislav Petkov <bp@suse.de> Cc: David Ahern <dsahern@gmail.com> Cc: Don Zickus <dzickus@redhat.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/n/tip-cgfhreaejd7ohitdjccu9k2o@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/perf-sys.h')
-rw-r--r--tools/perf/perf-sys.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/tools/perf/perf-sys.h b/tools/perf/perf-sys.h
index 79052fd1a695..56edbe16f583 100644
--- a/tools/perf/perf-sys.h
+++ b/tools/perf/perf-sys.h
@@ -70,20 +70,10 @@
70#endif 70#endif
71 71
72#ifdef __arm__ 72#ifdef __arm__
73/*
74 * Use the __kuser_memory_barrier helper in the CPU helper page. See
75 * arch/arm/kernel/entry-armv.S in the kernel source for details.
76 */
77#define mb() ((void(*)(void))0xffff0fa0)()
78#define wmb() ((void(*)(void))0xffff0fa0)()
79#define rmb() ((void(*)(void))0xffff0fa0)()
80#define CPUINFO_PROC {"model name", "Processor"} 73#define CPUINFO_PROC {"model name", "Processor"}
81#endif 74#endif
82 75
83#ifdef __aarch64__ 76#ifdef __aarch64__
84#define mb() asm volatile("dmb ish" ::: "memory")
85#define wmb() asm volatile("dmb ishst" ::: "memory")
86#define rmb() asm volatile("dmb ishld" ::: "memory")
87#define cpu_relax() asm volatile("yield" ::: "memory") 77#define cpu_relax() asm volatile("yield" ::: "memory")
88#endif 78#endif
89 79