Re: [Celinux-dev] Re: [PATCH] preset loops_per_jiffy for fasterbooting

From: Geert Uytterhoeven
Date: Sat Jul 10 2004 - 09:43:16 EST


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.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
-
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/