aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/include/asm/processor.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/include/asm/processor.h')
-rw-r--r--arch/mips/include/asm/processor.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/arch/mips/include/asm/processor.h b/arch/mips/include/asm/processor.h
index ab387910009a..5d33b727acf5 100644
--- a/arch/mips/include/asm/processor.h
+++ b/arch/mips/include/asm/processor.h
@@ -344,16 +344,10 @@ unsigned long get_wchan(struct task_struct *p);
344#ifdef CONFIG_CPU_HAS_PREFETCH 344#ifdef CONFIG_CPU_HAS_PREFETCH
345 345
346#define ARCH_HAS_PREFETCH 346#define ARCH_HAS_PREFETCH
347#define prefetch(x) __builtin_prefetch((x), 0, 1)
347 348
348static inline void prefetch(const void *addr) 349#define ARCH_HAS_PREFETCHW
349{ 350#define prefetchw(x) __builtin_prefetch((x), 1, 1)
350 __asm__ __volatile__(
351 " .set mips4 \n"
352 " pref %0, (%1) \n"
353 " .set mips0 \n"
354 :
355 : "i" (Pref_Load), "r" (addr));
356}
357 351
358#endif 352#endif
359 353