From 5a86523bd9190fc4441e000c7cff8483f5a2f526 Mon Sep 17 00:00:00 2001 From: David Mosberger Date: Tue, 14 Oct 2003 20:13:31 -0700 Subject: [PATCH] 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). --- include/asm-ia64/delay.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/asm-ia64/delay.h b/include/asm-ia64/delay.h index 74c542acc1e8a..8cc00a25d17ab 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 -- 2.53.0