diff options
| -rw-r--r-- | tools/perf/perf.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/perf/perf.h b/tools/perf/perf.h index 2c340e7da458..768507e079e2 100644 --- a/tools/perf/perf.h +++ b/tools/perf/perf.h | |||
| @@ -98,6 +98,12 @@ void get_term_dimensions(struct winsize *ws); | |||
| 98 | #define CPUINFO_PROC "cpu model" | 98 | #define CPUINFO_PROC "cpu model" |
| 99 | #endif | 99 | #endif |
| 100 | 100 | ||
| 101 | #ifdef __metag__ | ||
| 102 | #define rmb() asm volatile("" ::: "memory") | ||
| 103 | #define cpu_relax() asm volatile("" ::: "memory") | ||
| 104 | #define CPUINFO_PROC "CPU" | ||
| 105 | #endif | ||
| 106 | |||
| 101 | #include <time.h> | 107 | #include <time.h> |
| 102 | #include <unistd.h> | 108 | #include <unistd.h> |
| 103 | #include <sys/types.h> | 109 | #include <sys/types.h> |
