Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+2 -9
+2
tools/include/asm/barrier.h
··· 22 22 #include "../../arch/ia64/include/asm/barrier.h" 23 23 #elif defined(__xtensa__) 24 24 #include "../../arch/xtensa/include/asm/barrier.h" 25 + #else 26 + #include <asm-generic/barrier.h> 25 27 #endif
-9
tools/perf/perf-sys.h
··· 50 50 #endif 51 51 52 52 #ifdef __hppa__ 53 - #define mb() asm volatile("" ::: "memory") 54 - #define wmb() asm volatile("" ::: "memory") 55 - #define rmb() asm volatile("" ::: "memory") 56 53 #define CPUINFO_PROC {"cpu"} 57 54 #endif 58 55 ··· 79 82 #endif 80 83 81 84 #ifdef __arc__ 82 - #define mb() asm volatile("" ::: "memory") 83 - #define wmb() asm volatile("" ::: "memory") 84 - #define rmb() asm volatile("" ::: "memory") 85 85 #define CPUINFO_PROC {"Processor"} 86 86 #endif 87 87 88 88 #ifdef __metag__ 89 - #define mb() asm volatile("" ::: "memory") 90 - #define wmb() asm volatile("" ::: "memory") 91 - #define rmb() asm volatile("" ::: "memory") 92 89 #define CPUINFO_PROC {"CPU"} 93 90 #endif 94 91