mirror of
https://github.com/torvalds/linux
synced 2024-09-06 18:01:05 +00:00
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:
parent
94cdda6b98
commit
0da85d1e38
8
tools/arch/alpha/include/asm/barrier.h
Normal file
8
tools/arch/alpha/include/asm/barrier.h
Normal 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 */
|
|
@ -8,4 +8,6 @@
|
|||
#include "../../arch/sh/include/asm/barrier.h"
|
||||
#elif defined(__sparc__)
|
||||
#include "../../arch/sparc/include/asm/barrier.h"
|
||||
#elif defined(__alpha__)
|
||||
#include "../../arch/alpha/include/asm/barrier.h"
|
||||
#endif
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
tools/perf
|
||||
tools/arch/alpha/include/asm/barrier.h
|
||||
tools/arch/powerpc/include/asm/barrier.h
|
||||
tools/arch/s390/include/asm/barrier.h
|
||||
tools/arch/sh/include/asm/barrier.h
|
||||
|
|
|
@ -61,9 +61,6 @@
|
|||
#endif
|
||||
|
||||
#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"}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue