lkml.org 
[lkml]   [1998]   [Sep]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: BogoMIPS
> I did the same thing for 2.0.x a long time ago. It helped for certain
> chips, but it still jittered for others. And it depended on how the kernel
> got compiled - there was one (German?) person in particular who took the
> bogomips loop into user code and tried it with tons of different
> placements, and showed that for his CPU it made a difference how it was
> placed and what the surrounding code was.
>
> As a result, 2.0.x just does it as a separate subroutine in
>
> arch/i386/lib/delay.S
>
> and that pretty much forces it to not jitter at all. If you'd send me that
> kind of patch I'd accept it.

We already do it as a separate subroutine in 2.1 -- see arch/i386/lib/delay.c :-)
Maybe adding align to the start of the loop should be even better...

Have a nice fortnight
--
Martin `MJ' Mares <mj@ucw.cz> http://atrey.karlin.mff.cuni.cz/~mj/
Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth
"Black holes are where God divided by zero."

-
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/

\
 
 \ /
  Last update: 2005-03-22 13:44    [W:0.075 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site