]> git.baikalelectronics.ru Git - kernel.git/commit
fastboot: remove duplicate unpack_to_rootfs()
authorLi, Shaohua <shaohua.li@intel.com>
Wed, 13 Aug 2008 09:26:01 +0000 (17:26 +0800)
committerArjan van de Ven <arjan@linux.intel.com>
Sat, 28 Mar 2009 20:06:22 +0000 (13:06 -0700)
commit12f24b7d26a635592275f914ef7bfa272f08a9fe
tree1c708b2f43db6cf30bc1397ba5d3a520d0d370b7
parentbadf524756151b481c578ae12ba69e939d0a065b
fastboot: remove duplicate unpack_to_rootfs()

we check if initrd is initramfs first and then do the real unpack. The check
isn't required, we can directly do unpack.  If the initrd isn't an
initramfs, we can remove the garbage.  In my laptop, this saves 0.1s boot
time.

This patch penalizes non-initramfs initrd case, but nowadays, initramfs is
the most widely used method for initrds.

Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Acked-by: Arjan van de Ven <arjan@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
init/initramfs.c