On Wed, Dec 17, 2008 at 10:06 AM, Denis Kirjanov <[email protected]> wrote:
> Hi!
>
> The function calibrate_delay() from init/main.c comtains the following line:
> printk(KERN_CONT "%lu.%02lu BogoMIPS (lpj=%lu)\n",
>             loops_per_jiffy/(500000/HZ),
>             (loops_per_jiffy/(5000/HZ)) % 100, loops_per_jiffy);
>
> Please explain how bogoMIPS is computed. Why loops_per_jiffy is divided by
> 500000.

Chapter 7 can be useful.

http://lwn.net/Kernel/LDD3/

Notice that it's (500000/HZ), not just 500000.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [email protected]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to