diff --git a/[refs] b/[refs] index 0ab895190418..7cdd157aa6a5 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: ad0cf3478de8677f720ee06393b3147819568d6a +refs/heads/master: c1e028ef40b8d6943b767028ba17d4f2ba020edb diff --git a/trunk/tools/perf/perf.h b/trunk/tools/perf/perf.h index ef7aa0a0c526..95aaf565c704 100644 --- a/trunk/tools/perf/perf.h +++ b/trunk/tools/perf/perf.h @@ -73,6 +73,18 @@ void get_term_dimensions(struct winsize *ws); #define cpu_relax() asm volatile("":::"memory") #endif +#ifdef __mips__ +#include "../../arch/mips/include/asm/unistd.h" +#define rmb() asm volatile( \ + ".set mips2\n\t" \ + "sync\n\t" \ + ".set mips0" \ + : /* no output */ \ + : /* no input */ \ + : "memory") +#define cpu_relax() asm volatile("" ::: "memory") +#endif + #include #include #include