diff options
Diffstat (limited to 'meta-moblin/packages/linux/linux-moblin-2.6.28+2.6.29-rc2/0002-fastboot-remove-wait-for-all-devices-before-mounti.patch')
-rw-r--r-- | meta-moblin/packages/linux/linux-moblin-2.6.28+2.6.29-rc2/0002-fastboot-remove-wait-for-all-devices-before-mounti.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/meta-moblin/packages/linux/linux-moblin-2.6.28+2.6.29-rc2/0002-fastboot-remove-wait-for-all-devices-before-mounti.patch b/meta-moblin/packages/linux/linux-moblin-2.6.28+2.6.29-rc2/0002-fastboot-remove-wait-for-all-devices-before-mounti.patch new file mode 100644 index 0000000000..9ea6d62a63 --- /dev/null +++ b/meta-moblin/packages/linux/linux-moblin-2.6.28+2.6.29-rc2/0002-fastboot-remove-wait-for-all-devices-before-mounti.patch | |||
@@ -0,0 +1,38 @@ | |||
1 | From dce8113d033975f56630cf6d2a6a908cfb66059d Mon Sep 17 00:00:00 2001 | ||
2 | From: Arjan van de Ven <arjan@linux.intel.com> | ||
3 | Date: Sun, 20 Jul 2008 13:12:16 -0700 | ||
4 | Subject: [PATCH] fastboot: remove "wait for all devices before mounting root" delay | ||
5 | |||
6 | In the non-initrd case, we wait for all devices to finish their | ||
7 | probing before we try to mount the rootfs. | ||
8 | In practice, this means that we end up waiting 2 extra seconds for | ||
9 | the PS/2 mouse probing even though the root holding device has been | ||
10 | ready since a long time. | ||
11 | |||
12 | The previous two patches in this series made the RAID autodetect code | ||
13 | do it's own "wait for probing to be done" code, and added | ||
14 | "wait and retry" functionality in case the root device isn't actually | ||
15 | available. | ||
16 | |||
17 | These two changes should make it safe to remove the delay itself, | ||
18 | and this patch does this. On my test laptop, this reduces the boot time | ||
19 | by 2 seconds (kernel time goes from 3.9 to 1.9 seconds). | ||
20 | |||
21 | Signed-off-by: Arjan van de Ven <arjan@linux.intel.com> | ||
22 | --- | ||
23 | --- a/init/do_mounts.c 2009-01-07 18:42:10.000000000 -0800 | ||
24 | +++ b/init/do_mounts.c 2009-01-07 18:43:02.000000000 -0800 | ||
25 | @@ -370,10 +370,12 @@ void __init prepare_namespace(void) | ||
26 | ssleep(root_delay); | ||
27 | } | ||
28 | |||
29 | +#if 0 | ||
30 | /* wait for the known devices to complete their probing */ | ||
31 | while (driver_probe_done() != 0) | ||
32 | msleep(100); | ||
33 | +#endif | ||
34 | async_synchronize_full(); | ||
35 | |||
36 | md_run_setup(); | ||
37 | |||
38 | |||