diff options
Diffstat (limited to 'tools')
-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 87f4ec6d1f36..a89cbbb61801 100644 --- a/tools/perf/perf.h +++ b/tools/perf/perf.h | |||
@@ -88,6 +88,12 @@ void get_term_dimensions(struct winsize *ws); | |||
88 | #define CPUINFO_PROC "Processor" | 88 | #define CPUINFO_PROC "Processor" |
89 | #endif | 89 | #endif |
90 | 90 | ||
91 | #ifdef __aarch64__ | ||
92 | #include "../../arch/arm64/include/asm/unistd.h" | ||
93 | #define rmb() asm volatile("dmb ld" ::: "memory") | ||
94 | #define cpu_relax() asm volatile("yield" ::: "memory") | ||
95 | #endif | ||
96 | |||
91 | #ifdef __mips__ | 97 | #ifdef __mips__ |
92 | #include "../../arch/mips/include/asm/unistd.h" | 98 | #include "../../arch/mips/include/asm/unistd.h" |
93 | #define rmb() asm volatile( \ | 99 | #define rmb() asm volatile( \ |