Re: [LINUX:1309]

Murat Arslan (arslanm@cyberdude.com)
Mon, 23 Mar 1998 16:31:44 +0000 (GMT)


On Mon, 23 Mar 1998, Burak Say wrote:

> Linux baslarken bilmemne bogo MIPS diye bir seyler gozume ilisti..
> Bu tutarli bir benchmark skoru mu, yoksa ne?

init/main.c:503:

/* This is the number of bits of precision for the loops_per_second. Each
bit takes on average 1.5/HZ seconds. This (like the original) is a
little better than 1% */

#define LPS_PREC 8
void calibrate_delay(void)
{
int ticks;
int loopbit;
int lps_precision = LPS_PREC;

loops_per_sec = (1<<12);
printk("Calibrating delay loop.. ");
...
...

/* finally, adjust loops per second in terms of seconds instead of clocks */
loops_per_sec *= HZ;
/* Round the value and print it */
printk("ok - %lu.%02lu BogoMIPS\n",
(loops_per_sec+2500)/500000,
((loops_per_sec+2500)/5000) % 100);
__
Murat Arslan
PGP KeyID : 2047/673351F1
For PGPkey: finger arslanm@gate.marketweb.net.tr
Key FPrint: F1C6 E3F2 91C2 CD98 440B 4073 DFBC 532F