From: David Mosberger Date: Wed, 15 Oct 2003 03:13:31 +0000 (-0700) Subject: ia64: Fix __delay() to do The Right Thing. In practice, this may X-Git-Tag: v2.6.0-test8~5^2~2^2~7 X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=5a86523bd9190fc4441e000c7cff8483f5a2f526;p=history.git ia64: Fix __delay() to do The Right Thing. In practice, this may 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). --- diff --git a/include/asm-ia64/delay.h b/include/asm-ia64/delay.h index 74c542acc1e8..8cc00a25d17a 100644 --- a/include/asm-ia64/delay.h +++ b/include/asm-ia64/delay.h @@ -74,7 +74,7 @@ __delay (unsigned long loops) return; while (loops--) - ia64_nop(0); + barrier(); } static __inline__ void