* [PATCH] 3DNOW optimization fix
@ 2001-08-25 23:40 Anders Peter Fugmann
0 siblings, 0 replies; only message in thread
From: Anders Peter Fugmann @ 2001-08-25 23:40 UTC (permalink / raw)
To: Alan Cox; +Cc: Linux Kernel Mailing List
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)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-08-25 23:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-08-25 23:40 [PATCH] 3DNOW optimization fix Anders Peter Fugmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox