Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 211485
b: refs/heads/master
c: c1e028e
h: refs/heads/master
i:
  211483: 0e8567a
v: v3
  • Loading branch information
Deng-Cheng Zhu authored and Ingo Molnar committed Oct 12, 2010
1 parent da62c43 commit 34b4919
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ad0cf3478de8677f720ee06393b3147819568d6a
refs/heads/master: c1e028ef40b8d6943b767028ba17d4f2ba020edb
12 changes: 12 additions & 0 deletions trunk/tools/perf/perf.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,18 @@ void get_term_dimensions(struct winsize *ws);
#define cpu_relax() asm volatile("":::"memory")
#endif

#ifdef __mips__
#include "../../arch/mips/include/asm/unistd.h"
#define rmb() asm volatile( \
".set mips2\n\t" \
"sync\n\t" \
".set mips0" \
: /* no output */ \
: /* no input */ \
: "memory")
#define cpu_relax() asm volatile("" ::: "memory")
#endif

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

0 comments on commit 34b4919

Please sign in to comment.