summaryrefslogtreecommitdiff
path: root/tools/perf/perf.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-08-02 14:11:26 +0200
committerIngo Molnar <mingo@elte.hu>2009-08-02 14:23:57 +0200
commit8e9ed8b02490fea577b1eb1704c05bf43c891ed7 (patch)
tree3c0cc5dd498abcf0cc894e85509c131a0dde9a43 /tools/perf/perf.h
parent716a42348cdaf04534b15fbdc9c83e25baebfed5 (diff)
parent07903af152b0597d94e9b0030746b63c4664e787 (diff)
downloadlwn-8e9ed8b02490fea577b1eb1704c05bf43c891ed7.tar.gz
lwn-8e9ed8b02490fea577b1eb1704c05bf43c891ed7.zip
Merge branch 'sched/urgent' into sched/core
Merge reason: avoid upcoming patch conflict. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/perf.h')
-rw-r--r--tools/perf/perf.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/perf/perf.h b/tools/perf/perf.h
index 63e67cc5487b..e5148e2b6134 100644
--- a/tools/perf/perf.h
+++ b/tools/perf/perf.h
@@ -1,7 +1,13 @@
#ifndef _PERF_PERF_H
#define _PERF_PERF_H
-#if defined(__x86_64__) || defined(__i386__)
+#if defined(__i386__)
+#include "../../arch/x86/include/asm/unistd.h"
+#define rmb() asm volatile("lock; addl $0,0(%%esp)" ::: "memory")
+#define cpu_relax() asm volatile("rep; nop" ::: "memory");
+#endif
+
+#if defined(__x86_64__)
#include "../../arch/x86/include/asm/unistd.h"
#define rmb() asm volatile("lfence" ::: "memory")
#define cpu_relax() asm volatile("rep; nop" ::: "memory");