aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSurbhi Palande <surbhi.palande@canonical.com>2009-12-08 11:44:34 +0200
committerJohn Rigby <john.rigby@linaro.org>2012-06-25 12:16:54 -0600
commitef1fdf7338b198bc10fea707d786d7e9c2f32cfa (patch)
treeebef05263a90e604837170155da319c540dd8556 /include
parentedf90f402b94a9a84635f4518b420297cfda766a (diff)
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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/init.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/init.h b/include/linux/init.h
index 6b951095a42..280d329b882 100644
--- a/include/linux/init.h
+++ b/include/linux/init.h
@@ -223,6 +223,8 @@ extern bool initcall_debug;
static initcall_t __initcall_##fn \
__used __section(.security_initcall.init) = fn
+extern struct list_head populate_rootfs_domain;
+
struct obs_kernel_param {
const char *str;
int (*setup_func)(char *);