Re: [Celinux-dev] Re: [PATCH] preset loops_per_jiffy for faster booting

From: Adam Kropelin
Date: Sat Jul 10 2004 - 09:49:52 EST


On Sat, Jul 10, 2004 at 04:41:04PM +0200, Geert Uytterhoeven wrote:
> On Fri, 9 Jul 2004, Adam Kropelin wrote:
> > On Fri, Jul 09, 2004 at 05:20:07PM -0700, Tim Bird wrote:
> > > Adam Kropelin wrote:
> > + printk("Set 'Preset loops_per_jiffy'=%lu for preset lpj.\n",
> > + loops_per_jiffy);
>
> > +config PRESET_LPJ
> > + int "Preset loops_per_jiffy" if FASTBOOT
> > + default 0
> > + help
> > + This is the number of loops used by delay() to achieve a single
> > + jiffy of delay inside the kernel. It is normally calculated at
> > + boot time, but that calculation can take up to 250 ms per CPU.
> > + Specifying a constant value here will eliminate that delay.
> > +
> > + loops_per_jiffy is roughly BogoMips * 5000. To determine the correct
> > + value for your kernel, first turn off the fast booting option,
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> > + compile and boot the kernel on your target hardware, then see what
> > + value is printed during the kernel boot. Use that value here.
>
> This is no longer true, it will always print the value if lpj=0.

True enough. I'll fix that along with the things Todd noticed.

--Adam

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