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, 2 Apr 2012 20:08:48 +0000 (13:08 -0700)
commitab742c7d323bac581d1639fc0eebba1b478105aa
tree654246f23fd9055b202d8b9d4b80015d1b3def10
parent4f839d1f97d34392254837ed242fa80d04aecba9
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