diff options
author | Ingo Molnar <mingo@elte.hu> | 2010-10-14 03:11:43 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-10-14 03:11:46 -0400 |
commit | ed859ed3b0f9893c6bce3708e8928341c15699b9 (patch) | |
tree | 59c507f00bc13becb4accdd64fdc01ece08b4645 /tools/perf/perf.h | |
parent | a8027073eb127cd207070891374b5c54c2ce3d23 (diff) | |
parent | 53eeb64e808971207350386121f4bab12fa2f45f (diff) |
Merge branch 'linus' into sched/core
Merge reason: update from -rc5 to -almost-final
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/perf.h')
-rw-r--r-- | tools/perf/perf.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/perf/perf.h b/tools/perf/perf.h index ef7aa0a0c526..95aaf565c704 100644 --- a/tools/perf/perf.h +++ b/tools/perf/perf.h | |||
@@ -73,6 +73,18 @@ void get_term_dimensions(struct winsize *ws); | |||
73 | #define cpu_relax() asm volatile("":::"memory") | 73 | #define cpu_relax() asm volatile("":::"memory") |
74 | #endif | 74 | #endif |
75 | 75 | ||
76 | #ifdef __mips__ | ||
77 | #include "../../arch/mips/include/asm/unistd.h" | ||
78 | #define rmb() asm volatile( \ | ||
79 | ".set mips2\n\t" \ | ||
80 | "sync\n\t" \ | ||
81 | ".set mips0" \ | ||
82 | : /* no output */ \ | ||
83 | : /* no input */ \ | ||
84 | : "memory") | ||
85 | #define cpu_relax() asm volatile("" ::: "memory") | ||
86 | #endif | ||
87 | |||
76 | #include <time.h> | 88 | #include <time.h> |
77 | #include <unistd.h> | 89 | #include <unistd.h> |
78 | #include <sys/types.h> | 90 | #include <sys/types.h> |