diff mbox

[(sh-2.6)] sh: Use GCC __builtin_prefetch() to implement prefetch (V2)

Message ID 1289986039-24358-1-git-send-email-peppe.cavallaro@st.com (mailing list archive)
State Rejected
Headers show

Commit Message

Peppe CAVALLARO Nov. 17, 2010, 9:27 a.m. UTC
None
diff mbox

Patch

diff --git a/arch/sh/include/asm/processor_32.h b/arch/sh/include/asm/processor_32.h
index 46d5179..37417eb 100644
--- a/arch/sh/include/asm/processor_32.h
+++ b/arch/sh/include/asm/processor_32.h
@@ -195,14 +195,6 @@  extern unsigned long get_wchan(struct task_struct *p);
 
 #if defined(CONFIG_CPU_SH2A) || defined(CONFIG_CPU_SH4)
 #define PREFETCH_STRIDE		L1_CACHE_BYTES
-#define ARCH_HAS_PREFETCH
-#define ARCH_HAS_PREFETCHW
-static inline void prefetch(void *x)
-{
-	__asm__ __volatile__ ("pref @%0\n\t" : : "r" (x) : "memory");
-}
-
-#define prefetchw(x)	prefetch(x)
 #endif
 
 #endif /* __KERNEL__ */