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-11-14 18:19:13 -0700
commit5361e86f900ba3f244c3d5a0306b7cddbeb6355e (patch)
tree2f066ba098db91e8e5e269362351ad02b6fae185 /include
parent6180e9c9c977e3571657f54ef2b4a0a0f1b7ae6f (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 e59041e21df..8753767f9c5 100644
--- a/include/linux/init.h
+++ b/include/linux/init.h
@@ -235,6 +235,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 *);