linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* PATCH: make rep-nop a barrier as in 2.5
@ 2003-07-14 12:32 Alan Cox
  0 siblings, 0 replies; only message in thread
From: Alan Cox @ 2003-07-14 12:32 UTC (permalink / raw)
  To: linux-kernel, marcelo

diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.22-pre5/include/asm-i386/processor.h linux.22-pre5-ac1/include/asm-i386/processor.h
--- linux.22-pre5/include/asm-i386/processor.h	2003-07-14 12:27:42.000000000 +0100
+++ linux.22-pre5-ac1/include/asm-i386/processor.h	2003-07-08 23:31:26.000000000 +0100
@@ -468,7 +471,7 @@
 /* REP NOP (PAUSE) is a good thing to insert into busy-wait loops. */
 static inline void rep_nop(void)
 {
-	__asm__ __volatile__("rep;nop");
+	__asm__ __volatile__("rep;nop" ::: "memory");
 }
 
 #define cpu_relax()	rep_nop()

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-07-14 12:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-14 12:32 PATCH: make rep-nop a barrier as in 2.5 Alan Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).