UBUNTU: SAUCE: Make populate_rootfs asynchronous
authorSurbhi Palande <surbhi.palande@canonical.com>
Tue, 8 Dec 2009 09:44:34 +0000 (11:44 +0200)
committerLeann Ogasawara <leann.ogasawara@canonical.com>
Mon, 28 Mar 2011 13:48:19 +0000 (06:48 -0700)
commit8defb666e9e276bdf7646a8452ba294f92ca9862
tree13a75ff8d42f223fb8d2a9199e0f7fd9b28479e6
parent147ffa6966bb4aebe7ee691226ea61adfe9cf206
UBUNTU: SAUCE: Make populate_rootfs asynchronous

The expansion of the initramfs is completely independant of other
boot activities.  The original data is already present at boot and the
filesystem is not required until we are ready to start init.  It is
therefore reasonable to populate the rootfs asynchronously.  Move this
processing to an async call.

This reduces kernel initialisation time (the time from bootloader to
starting userspace) by several 10ths of a second on a selection of test
hardware particularly SMP systems, although UP system also benefit.

Signed-off-by: Surbhi Palande <surbhi.palande@canonical.com>
Signed-off-by: Andy Whitcroft <apw@canonical.com>
include/linux/init.h
init/initramfs.c
init/main.c