Change ia64 prefetch to use lfetch.fault

From: Chen, Kenneth W <kenneth.w.chen_at_intel.com>
Date: 2005-07-29 07:53:00
I don't remember whether this has been discussed earlier, won't
it make sense to use the fault variant of lfetch for prefetch()
and prefetchw()?  After all, the caller has high confidence that
the cache line will be used in the future.


Signed-off-by: Ken Chen <kenneth.w.chen@intel.com>

--- linux-2.6.12/include/asm-ia64/processor.h.orig	2005-07-28 14:46:26.629519713 -0700
+++ linux-2.6.12/include/asm-ia64/processor.h	2005-07-28 14:48:17.037721485 -0700
@@ -682,13 +682,13 @@ ia64_imva (void *addr)
 static inline void
 prefetch (const void *x)
 {
-	 ia64_lfetch(ia64_lfhint_none, x);
+	ia64_lfetch_fault(ia64_lfhint_none, x);
 }
 
 static inline void
 prefetchw (const void *x)
 {
-	ia64_lfetch_excl(ia64_lfhint_none, x);
+	ia64_lfetch_fault_excl(ia64_lfhint_none, x);
 }
 
 #define spin_lock_prefetch(x)	prefetchw(x)

-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Thu Jul 28 17:55:17 2005

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:40 EST