diff options
Diffstat (limited to 'patches/boot_time_opt/0111-init-no-wait-for-the-known-devices.patch')
-rw-r--r-- | patches/boot_time_opt/0111-init-no-wait-for-the-known-devices.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/patches/boot_time_opt/0111-init-no-wait-for-the-known-devices.patch b/patches/boot_time_opt/0111-init-no-wait-for-the-known-devices.patch new file mode 100644 index 0000000..701a18d --- /dev/null +++ b/patches/boot_time_opt/0111-init-no-wait-for-the-known-devices.patch | |||
@@ -0,0 +1,39 @@ | |||
1 | From be2ab4809c6b5058fbf3cd54c0f59c56416e572c Mon Sep 17 00:00:00 2001 | ||
2 | From: Arjan van de Ven <arjan@linux.intel.com> | ||
3 | Date: Mon, 22 Jun 2015 09:33:33 -0500 | ||
4 | Subject: [PATCH 111/114] init: no wait for the known devices | ||
5 | |||
6 | No wait for the known devices to complete their probing | ||
7 | |||
8 | Author: Arjan van de Ven <arjan@linux.intel.com> | ||
9 | |||
10 | Signed-off-by: Miguel Bernal Marin <miguel.bernal.marin@linux.intel.com> | ||
11 | --- | ||
12 | init/do_mounts.c | 4 +++- | ||
13 | 1 file changed, 3 insertions(+), 1 deletion(-) | ||
14 | |||
15 | diff --git a/init/do_mounts.c b/init/do_mounts.c | ||
16 | index c2de5104aad2..40725f0f5fb3 100644 | ||
17 | --- a/init/do_mounts.c | ||
18 | +++ b/init/do_mounts.c | ||
19 | @@ -28,6 +28,7 @@ | ||
20 | #include <linux/slab.h> | ||
21 | #include <linux/ramfs.h> | ||
22 | #include <linux/shmem_fs.h> | ||
23 | +#include <linux/async.h> | ||
24 | |||
25 | #include <linux/nfs_fs.h> | ||
26 | #include <linux/nfs_fs_sb.h> | ||
27 | @@ -563,7 +564,8 @@ void __init prepare_namespace(void) | ||
28 | * For example, it is not atypical to wait 5 seconds here | ||
29 | * for the touchpad of a laptop to initialize. | ||
30 | */ | ||
31 | - wait_for_device_probe(); | ||
32 | + //wait_for_device_probe(); | ||
33 | + async_synchronize_full(); | ||
34 | |||
35 | md_run_setup(); | ||
36 | |||
37 | -- | ||
38 | 2.11.1 | ||
39 | |||