Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 196796
b: refs/heads/master
c: 0453fb3
h: refs/heads/master
v: v3
  • Loading branch information
David Daney authored and Ralf Baechle committed May 21, 2010
1 parent 474139e commit 7ae6447
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 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: 606c958e2857d29106b8d3b2fc30e22f376c80c5
refs/heads/master: 0453fb3c528c5eb3483441a466b24a4cb409eec5
12 changes: 3 additions & 9 deletions trunk/arch/mips/include/asm/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -344,16 +344,10 @@ unsigned long get_wchan(struct task_struct *p);
#ifdef CONFIG_CPU_HAS_PREFETCH

#define ARCH_HAS_PREFETCH
#define prefetch(x) __builtin_prefetch((x), 0, 1)

static inline void prefetch(const void *addr)
{
__asm__ __volatile__(
" .set mips4 \n"
" pref %0, (%1) \n"
" .set mips0 \n"
:
: "i" (Pref_Load), "r" (addr));
}
#define ARCH_HAS_PREFETCHW
#define prefetchw(x) __builtin_prefetch((x), 1, 1)

#endif

Expand Down

0 comments on commit 7ae6447

Please sign in to comment.