Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 169642
b: refs/heads/master
c: 11ada26
h: refs/heads/master
v: v3
  • Loading branch information
Luck, Tony authored and Ingo Molnar committed Nov 19, 2009
1 parent 5707c57 commit 8b2bff6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 751386507701010831d72c522171753d2cd903d2
refs/heads/master: 11ada26c78febe4662a8e848f3bff74e3200c920
8 changes: 5 additions & 3 deletions trunk/tools/perf/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,12 @@ ifdef NO_64BIT
MBITS := -m32
else
#
# If we're on a 64-bit kernel, use -m64:
# If we're on a 64-bit kernel (except ia64), use -m64:
#
ifneq ($(patsubst %64,%,$(uname_M)),$(uname_M))
MBITS := -m64
ifneq ($(uname_M),ia64)
ifneq ($(patsubst %64,%,$(uname_M)),$(uname_M))
MBITS := -m64
endif
endif
endif

Expand Down
6 changes: 6 additions & 0 deletions trunk/tools/perf/perf.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@
#define cpu_relax() asm volatile("" ::: "memory")
#endif

#ifdef __ia64__
#include "../../arch/ia64/include/asm/unistd.h"
#define rmb() asm volatile ("mf" ::: "memory")
#define cpu_relax() asm volatile ("hint @pause" ::: "memory")
#endif

#include <time.h>
#include <unistd.h>
#include <sys/types.h>
Expand Down

0 comments on commit 8b2bff6

Please sign in to comment.