]> code.ossystems Code Review - openembedded-core.git/blob
f6db800c716e9c0fa848f4686f6f6d48cba891e8
[openembedded-core.git] /
1 From d1a26186ee222329a797bb0b2c8e2b5bc7d94d42 Mon Sep 17 00:00:00 2001
2 From: Arjan van de Ven <arjan@linux.intel.com>
3 Date: Fri, 18 Jul 2008 15:16:53 -0700
4 Subject: [PATCH] fastboot: turn the USB hostcontroller initcalls into async initcalls
5
6 the USB host controller init calls take a long time, mostly due to a
7 "minimally 100 msec" delay *per port* during initialization.
8 These are prime candidates for going in parallel to everything else.
9
10 The USB device ordering is not affected by this due to the
11 serialized-within-eachother property of async initcalls.
12
13 Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
14 Signed-off-by: Ingo Molnar <mingo@elte.hu>
15 ---
16  drivers/usb/host/ehci-hcd.c |    2 +-
17  drivers/usb/host/ohci-hcd.c |    2 +-
18  drivers/usb/host/uhci-hcd.c |    2 +-
19  3 files changed, 3 insertions(+), 3 deletions(-)
20
21 Index: linux-2.6.27/drivers/usb/host/ehci-hcd.c
22 ===================================================================
23 --- linux-2.6.27.orig/drivers/usb/host/ehci-hcd.c       2008-10-14 16:55:35.000000000 +0200
24 +++ linux-2.6.27/drivers/usb/host/ehci-hcd.c    2008-10-14 17:01:27.000000000 +0200
25 @@ -1107,7 +1107,7 @@ clean0:
26  #endif
27         return retval;
28  }
29 -module_init(ehci_hcd_init);
30 +module_init_async(ehci_hcd_init);
31  
32  static void __exit ehci_hcd_cleanup(void)
33  {
34 Index: linux-2.6.27/drivers/usb/host/ohci-hcd.c
35 ===================================================================
36 --- linux-2.6.27.orig/drivers/usb/host/ohci-hcd.c       2008-10-14 16:55:35.000000000 +0200
37 +++ linux-2.6.27/drivers/usb/host/ohci-hcd.c    2008-10-14 17:01:27.000000000 +0200
38 @@ -1186,7 +1186,7 @@ static int __init ohci_hcd_mod_init(void
39  
40         return retval;
41  }
42 -module_init(ohci_hcd_mod_init);
43 +module_init_async(ohci_hcd_mod_init);
44  
45  static void __exit ohci_hcd_mod_exit(void)
46  {
47 Index: linux-2.6.27/drivers/usb/host/uhci-hcd.c
48 ===================================================================
49 --- linux-2.6.27.orig/drivers/usb/host/uhci-hcd.c       2008-10-14 16:55:35.000000000 +0200
50 +++ linux-2.6.27/drivers/usb/host/uhci-hcd.c    2008-10-14 17:01:27.000000000 +0200
51 @@ -999,7 +999,7 @@ static void __exit uhci_hcd_cleanup(void
52         kfree(errbuf);
53  }
54  
55 -module_init(uhci_hcd_init);
56 +module_init_async(uhci_hcd_init);
57  module_exit(uhci_hcd_cleanup);
58  
59  MODULE_AUTHOR(DRIVER_AUTHOR);