aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/perf/Makefile8
-rw-r--r--tools/perf/perf.h6
2 files changed, 11 insertions, 3 deletions
diff --git a/tools/perf/Makefile b/tools/perf/Makefile
index 5d1a8b0dff8f..3f0666af93de 100644
--- a/tools/perf/Makefile
+++ b/tools/perf/Makefile
@@ -166,10 +166,12 @@ ifdef NO_64BIT
166 MBITS := -m32 166 MBITS := -m32
167else 167else
168 # 168 #
169 # If we're on a 64-bit kernel, use -m64: 169 # If we're on a 64-bit kernel (except ia64), use -m64:
170 # 170 #
171 ifneq ($(patsubst %64,%,$(uname_M)),$(uname_M)) 171 ifneq ($(uname_M),ia64)
172 MBITS := -m64 172 ifneq ($(patsubst %64,%,$(uname_M)),$(uname_M))
173 MBITS := -m64
174 endif
173 endif 175 endif
174endif 176endif
175 177
diff --git a/tools/perf/perf.h b/tools/perf/perf.h
index 216bdb223f63..454d5d55f32d 100644
--- a/tools/perf/perf.h
+++ b/tools/perf/perf.h
@@ -53,6 +53,12 @@
53#define cpu_relax() asm volatile("" ::: "memory") 53#define cpu_relax() asm volatile("" ::: "memory")
54#endif 54#endif
55 55
56#ifdef __ia64__
57#include "../../arch/ia64/include/asm/unistd.h"
58#define rmb() asm volatile ("mf" ::: "memory")
59#define cpu_relax() asm volatile ("hint @pause" ::: "memory")
60#endif
61
56#include <time.h> 62#include <time.h>
57#include <unistd.h> 63#include <unistd.h>
58#include <sys/types.h> 64#include <sys/types.h>