perf tools: Move alpha barrier.h stuff to tools/arch/alpha/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-vs2plxuph0ne3zcupijgjy9z@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2015-05-07 17:52:19 -03:00
parent 94cdda6b98
commit 0da85d1e38
4 changed files with 11 additions and 3 deletions

View File

@ -0,0 +1,8 @@
#ifndef __TOOLS_LINUX_ASM_ALPHA_BARRIER_H
#define __TOOLS_LINUX_ASM_ALPHA_BARRIER_H
#define mb() __asm__ __volatile__("mb": : :"memory")
#define rmb() __asm__ __volatile__("mb": : :"memory")
#define wmb() __asm__ __volatile__("wmb": : :"memory")
#endif /* __TOOLS_LINUX_ASM_ALPHA_BARRIER_H */

View File

@ -8,4 +8,6 @@
#include "../../arch/sh/include/asm/barrier.h" #include "../../arch/sh/include/asm/barrier.h"
#elif defined(__sparc__) #elif defined(__sparc__)
#include "../../arch/sparc/include/asm/barrier.h" #include "../../arch/sparc/include/asm/barrier.h"
#elif defined(__alpha__)
#include "../../arch/alpha/include/asm/barrier.h"
#endif #endif

View File

@ -1,4 +1,5 @@
tools/perf tools/perf
tools/arch/alpha/include/asm/barrier.h
tools/arch/powerpc/include/asm/barrier.h tools/arch/powerpc/include/asm/barrier.h
tools/arch/s390/include/asm/barrier.h tools/arch/s390/include/asm/barrier.h
tools/arch/sh/include/asm/barrier.h tools/arch/sh/include/asm/barrier.h

View File

@ -61,9 +61,6 @@
#endif #endif
#ifdef __alpha__ #ifdef __alpha__
#define mb() asm volatile("mb" ::: "memory")
#define wmb() asm volatile("wmb" ::: "memory")
#define rmb() asm volatile("mb" ::: "memory")
#define CPUINFO_PROC {"cpu model"} #define CPUINFO_PROC {"cpu model"}
#endif #endif