summaryrefslogtreecommitdiffstats
path: root/meta-moblin/packages/linux/linux-moblin-2.6.27/0025-fastboot-turn-the-USB-hostcontroller-initcalls-into.patch
blob: f6db800c716e9c0fa848f4686f6f6d48cba891e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
From d1a26186ee222329a797bb0b2c8e2b5bc7d94d42 Mon Sep 17 00:00:00 2001
From: Arjan van de Ven <arjan@linux.intel.com>
Date: Fri, 18 Jul 2008 15:16:53 -0700
Subject: [PATCH] fastboot: turn the USB hostcontroller initcalls into async initcalls

the USB host controller init calls take a long time, mostly due to a
"minimally 100 msec" delay *per port* during initialization.
These are prime candidates for going in parallel to everything else.

The USB device ordering is not affected by this due to the
serialized-within-eachother property of async initcalls.

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
 drivers/usb/host/ehci-hcd.c |    2 +-
 drivers/usb/host/ohci-hcd.c |    2 +-
 drivers/usb/host/uhci-hcd.c |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

Index: linux-2.6.27/drivers/usb/host/ehci-hcd.c
===================================================================
--- linux-2.6.27.orig/drivers/usb/host/ehci-hcd.c	2008-10-14 16:55:35.000000000 +0200
+++ linux-2.6.27/drivers/usb/host/ehci-hcd.c	2008-10-14 17:01:27.000000000 +0200
@@ -1107,7 +1107,7 @@ clean0:
 #endif
 	return retval;
 }
-module_init(ehci_hcd_init);
+module_init_async(ehci_hcd_init);
 
 static void __exit ehci_hcd_cleanup(void)
 {
Index: linux-2.6.27/drivers/usb/host/ohci-hcd.c
===================================================================
--- linux-2.6.27.orig/drivers/usb/host/ohci-hcd.c	2008-10-14 16:55:35.000000000 +0200
+++ linux-2.6.27/drivers/usb/host/ohci-hcd.c	2008-10-14 17:01:27.000000000 +0200
@@ -1186,7 +1186,7 @@ static int __init ohci_hcd_mod_init(void
 
 	return retval;
 }
-module_init(ohci_hcd_mod_init);
+module_init_async(ohci_hcd_mod_init);
 
 static void __exit ohci_hcd_mod_exit(void)
 {
Index: linux-2.6.27/drivers/usb/host/uhci-hcd.c
===================================================================
--- linux-2.6.27.orig/drivers/usb/host/uhci-hcd.c	2008-10-14 16:55:35.000000000 +0200
+++ linux-2.6.27/drivers/usb/host/uhci-hcd.c	2008-10-14 17:01:27.000000000 +0200
@@ -999,7 +999,7 @@ static void __exit uhci_hcd_cleanup(void
 	kfree(errbuf);
 }
 
-module_init(uhci_hcd_init);
+module_init_async(uhci_hcd_init);
 module_exit(uhci_hcd_cleanup);
 
 MODULE_AUTHOR(DRIVER_AUTHOR);