Re: [OFFTOPIC] Odd BogoMIPS

Richard B. Johnson (root@chaos.analogic.com)
Thu, 20 Aug 1998 07:59:11 -0400 (EDT)


On Wed, 19 Aug 1998 beyer@cis.nmclites.edu wrote:

> I know this probably is a dumb question + I know BogoMIPS are bogus but I
> have to ask this since I can't figure out why when I compile a kernel on my
> Debian 2.0 system I receive a different number at boot. I am using 2.0.34
> compiled with gcc 2.7.2.3 on a Pentium 166 MMX CPU, 96MB RAM and a boot it
> reports 249.04 BogoMIPS whereas all my kernels I have compiled in the past
> always reported 332.60.
>
> I just compiled another kernel on Slackware 3.5, kernel 2.0.34 with
> egcs-2.90.29 980515 (egcs-1.0.3 release) and as always at boot it said
> 332.60 BogoMIPS. This just doesn't seem right to me but what do I know, does
> anyone out there have an idea of why this is? Again I know this isnt a big
> deal but it makes me curious of what causes this. Thanks for you time :)
>
> -- Eric

This patch never got into the kernel. It was done a long time ago and
fixes the problem. Try it.

--- linux/arch/i386/lib/delay.c.orig Wed Jun 24 10:22:50 1998
+++ linux/arch/i386/lib/delay.c Wed Jun 24 10:18:52 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 *****

Presidents take credit for good events during their
administration and other events are blamed upon their
predecessors. So Clinton can take credit for Viagra and the
problem with the girl and candy can be blamed upon Reagan
and his jelly beans.

Penguin : Linux version 2.1.115 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.altern.org/andrebalsa/doc/lkml-faq.html