|
@@ -199,10 +199,13 @@ extern unsigned long get_wchan(struct task_struct *p);
|
|
#define ARCH_HAS_PREFETCHW
|
|
#define ARCH_HAS_PREFETCHW
|
|
static inline void prefetch(void *x)
|
|
static inline void prefetch(void *x)
|
|
{
|
|
{
|
|
- __asm__ __volatile__ ("pref @%0\n\t" : : "r" (x) : "memory");
|
|
|
|
|
|
+ __builtin_prefetch(x, 0, 3);
|
|
}
|
|
}
|
|
|
|
|
|
-#define prefetchw(x) prefetch(x)
|
|
|
|
|
|
+static inline void prefetchw(void *x)
|
|
|
|
+{
|
|
|
|
+ __builtin_prefetch(x, 1, 3);
|
|
|
|
+}
|
|
#endif
|
|
#endif
|
|
|
|
|
|
#endif /* __KERNEL__ */
|
|
#endif /* __KERNEL__ */
|