diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2015-05-08 08:40:36 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2015-05-08 15:05:07 -0400 |
commit | e2164f0406db75cb1ae0bf49ae7915f0ab10e201 (patch) | |
tree | b667a1c2121a424b56b484fd05a79dffff7ea9db /tools/arch/mips | |
parent | 3d3337de8900a199a7ab304f742a6ad2a973b9f4 (diff) |
perf tools: Move mips barrier.h stuff to tools/arch/mips/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: Deng-Cheng Zhu <dengcheng.zhu@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: Ralf Baechle <ralf@linux-mips.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-c5a8m8lbjuy0agep6giykxbz@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/arch/mips')
-rw-r--r-- | tools/arch/mips/include/asm/barrier.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tools/arch/mips/include/asm/barrier.h b/tools/arch/mips/include/asm/barrier.h new file mode 100644 index 000000000000..80f96f7556e3 --- /dev/null +++ b/tools/arch/mips/include/asm/barrier.h | |||
@@ -0,0 +1,20 @@ | |||
1 | #ifndef _TOOLS_LINUX_ASM_MIPS_BARRIER_H | ||
2 | #define _TOOLS_LINUX_ASM_MIPS_BARRIER_H | ||
3 | /* | ||
4 | * FIXME: This came from tools/perf/perf-sys.h, where it was first introduced | ||
5 | * in c1e028ef40b8d6943b767028ba17d4f2ba020edb, more work needed to make it | ||
6 | * more closely follow the Linux kernel arch/mips/include/asm/barrier.h file. | ||
7 | * Probably when we continue work on tools/ Kconfig support to have all the | ||
8 | * CONFIG_ needed for properly doing that. | ||
9 | */ | ||
10 | #define mb() asm volatile( \ | ||
11 | ".set mips2\n\t" \ | ||
12 | "sync\n\t" \ | ||
13 | ".set mips0" \ | ||
14 | : /* no output */ \ | ||
15 | : /* no input */ \ | ||
16 | : "memory") | ||
17 | #define wmb() mb() | ||
18 | #define rmb() mb() | ||
19 | |||
20 | #endif /* _TOOLS_LINUX_ASM_MIPS_BARRIER_H */ | ||