Re: [PATCH] skip initramfs check

Andrew Morton
2005-11-17T22:56:41Z

Marcelo Tosatti <marcelo.tosatti@cyclades.com> wrote:
>
> The initramfs check at populate_rootfs() can consume significant time
> (several seconds) on slow/embedded platforms, since it has to decompress
> the image.
>
> Add an option to skip it under CONFIG_EMBEDDED.
>
> Is there a nicer way to achieve the same result?

I'd have thought that a __setup option would be preferable? Remove an
ifdef, more flexible, and it's all __init code anyway.