aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/perf/perf.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/perf/perf.h b/tools/perf/perf.h
index e5148e2b6134..2abeb20d0bf3 100644
--- a/tools/perf/perf.h
+++ b/tools/perf/perf.h
@@ -41,6 +41,12 @@
41#define cpu_relax() asm volatile("" ::: "memory"); 41#define cpu_relax() asm volatile("" ::: "memory");
42#endif 42#endif
43 43
44#ifdef __sparc__
45#include "../../arch/sparc/include/asm/unistd.h"
46#define rmb() asm volatile("":::"memory")
47#define cpu_relax() asm volatile("":::"memory")
48#endif
49
44#include <time.h> 50#include <time.h>
45#include <unistd.h> 51#include <unistd.h>
46#include <sys/types.h> 52#include <sys/types.h>