diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2015-05-07 16:17:17 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2015-05-08 15:05:08 -0400 |
commit | 42b09d7b0e3d57a92b938fde5fcb532e9a88e1ea (patch) | |
tree | db1756d87268a03f68dfca71988286f4362c03f4 /tools/perf/perf-sys.h | |
parent | d3bd708114a37bcb472715818ba21d61ef71e86a (diff) |
perf tools: Move generic barriers out of perf-sys.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.
The parisc stuff was just using the asm-generic/barrier.h, no need to
introduce a tools/arch/parisc/ tree just yet.
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-tfas9bs1gje0hfsvhqgrosd6@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.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/tools/perf/perf-sys.h b/tools/perf/perf-sys.h index e5be325a439e..83a25cef82fd 100644 --- a/tools/perf/perf-sys.h +++ b/tools/perf/perf-sys.h | |||
@@ -50,9 +50,6 @@ | |||
50 | #endif | 50 | #endif |
51 | 51 | ||
52 | #ifdef __hppa__ | 52 | #ifdef __hppa__ |
53 | #define mb() asm volatile("" ::: "memory") | ||
54 | #define wmb() asm volatile("" ::: "memory") | ||
55 | #define rmb() asm volatile("" ::: "memory") | ||
56 | #define CPUINFO_PROC {"cpu"} | 53 | #define CPUINFO_PROC {"cpu"} |
57 | #endif | 54 | #endif |
58 | 55 | ||
@@ -82,16 +79,10 @@ | |||
82 | #endif | 79 | #endif |
83 | 80 | ||
84 | #ifdef __arc__ | 81 | #ifdef __arc__ |
85 | #define mb() asm volatile("" ::: "memory") | ||
86 | #define wmb() asm volatile("" ::: "memory") | ||
87 | #define rmb() asm volatile("" ::: "memory") | ||
88 | #define CPUINFO_PROC {"Processor"} | 82 | #define CPUINFO_PROC {"Processor"} |
89 | #endif | 83 | #endif |
90 | 84 | ||
91 | #ifdef __metag__ | 85 | #ifdef __metag__ |
92 | #define mb() asm volatile("" ::: "memory") | ||
93 | #define wmb() asm volatile("" ::: "memory") | ||
94 | #define rmb() asm volatile("" ::: "memory") | ||
95 | #define CPUINFO_PROC {"CPU"} | 86 | #define CPUINFO_PROC {"CPU"} |
96 | #endif | 87 | #endif |
97 | 88 | ||