BogoMIPS

Richard B. Johnson (root@chaos.analogic.com)
Mon, 28 Sep 1998 20:33:02 -0400 (EDT)


Linus,
Will you please put this patch into some distribution on the near
future. It fixes the bobbling BogoMIPS that different Intel machines
produce with random cache-line refills. I can't possibly hurt anything
since it's just two jumps before the delay-loop.

--- linux-2.1.123/arch/i386/lib/delay.c.orig Sun Dec 21 20:27:18 1997
+++ linux-2.1.123/arch/i386/lib/delay.c Mon Sep 28 20:24:22 1998
@@ -18,7 +18,11 @@
void __delay(unsigned long loops)
{
__asm__ __volatile__(
- "1:\tdecl %0\n\tjns 1b"
+ "jmp 1f\n"
+ ".align 16\n"
+ "1:\tjmp 2f\n"
+ ".align 16\n"
+ "2:\tdecl %0\n\tjns 2b"
:/* no outputs */
:"a" (loops)
:"ax");

Cheers,
Dick Johnson
***** FILE SYSTEM WAS MODIFIED *****
Penguin : Linux version 2.1.123 on an i586 machine (66.15 BogoMips).
Warning : It's hard to remain at the trailing edge of technology.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/