]> git.neil.brown.name Git - history.git/commitdiff
ia64: Fix __delay() to do The Right Thing. In practice, this may
authorDavid Mosberger <davidm@tiger.hpl.hp.com>
Wed, 15 Oct 2003 03:13:31 +0000 (20:13 -0700)
committerDavid Mosberger <davidm@tiger.hpl.hp.com>
Wed, 15 Oct 2003 03:13:31 +0000 (20:13 -0700)
cause BogoMIPS to drop to half the clock-speed with current
versions of GCC, but this just shows that GCC doesn't generate
very good code for single-cycle loops.  Perhaps it will motivate
someone to improve GCC in this area (though it's hardly of
practical value, other than for producing large BogoMIPS values).

include/asm-ia64/delay.h

index 74c542acc1e8a9ffd610b36228bb7f3147daed2d..8cc00a25d17ab93e11a98e726fb8d7435d791fa2 100644 (file)
@@ -74,7 +74,7 @@ __delay (unsigned long loops)
                return;
 
        while (loops--)
-               ia64_nop(0);
+               barrier();
 }
 
 static __inline__ void