diff options
author | Ingo Molnar <mingo@kernel.org> | 2014-05-05 19:37:51 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2014-05-05 19:37:51 +0200 |
commit | 3e46d21285577a8c9e4c37f9b1002e567c440b28 (patch) | |
tree | 9a49847d06c707aa0b441bc88babe76ede3c0de1 /tools/include/linux/compiler.h | |
parent | 3617660e4e1618a888a2e3a4067224534302cb33 (diff) | |
parent | 73a31b7c6a85e2f033524058bad5bce900e4f2ed (diff) |
Merge tag 'perf-core-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf into perf/core
Pull perf/core improvements and fixes from Jiri Olsa:
* Cleanups for perf.h header (Jiri Olsa)
* Consolidate types.h and export.h within tools (Borislav Petkov)
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/include/linux/compiler.h')
-rw-r--r-- | tools/include/linux/compiler.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/include/linux/compiler.h b/tools/include/linux/compiler.h index fbc6665c6d53..88461f09cc86 100644 --- a/tools/include/linux/compiler.h +++ b/tools/include/linux/compiler.h @@ -35,4 +35,6 @@ # define unlikely(x) __builtin_expect(!!(x), 0) #endif +#define ACCESS_ONCE(x) (*(volatile typeof(x) *)&(x)) + #endif /* _TOOLS_LINUX_COMPILER_H */ |