[PATCH] 3DNOW optimization fix

From: Anders Peter Fugmann (afu@fugmann.dhs.org)
Date: Sat Aug 25 2001 - 18:40:23 EST


As noted by Andreas Franck, the assembler instruction for
write prefetch is mistakenly a read prefetch. Below is for
linux-2.4.8-ac11 that corrects the error.

Regards
Anders Fugmann

--

--- linux/include/asm-i386/processor.h~ Sun Aug 26 01:18:12 2001 +++ linux/include/asm-i386/processor.h Sun Aug 26 01:22:36 2001 @@ -501,7 +502,7 @@

extern inline void prefetchw(const void *x) { - __asm__ __volatile__ ("prefetch (%0)" : : "r"(x)); + __asm__ __volatile__ ("prefetchw (%0)" : : "r"(x)); } #define spin_lock_prefetch(x) prefetchw(x)

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Aug 31 2001 - 21:00:19 EST