diff options
author | Samuel Ortiz <sameo@openedhand.com> | 2008-10-09 17:00:45 +0000 |
---|---|---|
committer | Samuel Ortiz <sameo@openedhand.com> | 2008-10-09 17:00:45 +0000 |
commit | d89d52d3ec86cf95dd93bb78c9b0ab537200e180 (patch) | |
tree | ac2667cd2ffa466be3f333c032045b9e3a8805d2 /meta/packages/linux/linux-moblin-2.6.27-rc6/0025-fastboot-turn-the-USB-hostcontroller-initcalls-into.patch | |
parent | 3d40acdf3e5e6d7da75862fa309b58f0d555141a (diff) | |
download | poky-d89d52d3ec86cf95dd93bb78c9b0ab537200e180.tar.gz |
linux-moblin: 2.6.27-rc6 kernel
That includes the fastboot patches. An eee boots in 10s with that
kernel.
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5470 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/linux/linux-moblin-2.6.27-rc6/0025-fastboot-turn-the-USB-hostcontroller-initcalls-into.patch')
-rw-r--r-- | meta/packages/linux/linux-moblin-2.6.27-rc6/0025-fastboot-turn-the-USB-hostcontroller-initcalls-into.patch | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/meta/packages/linux/linux-moblin-2.6.27-rc6/0025-fastboot-turn-the-USB-hostcontroller-initcalls-into.patch b/meta/packages/linux/linux-moblin-2.6.27-rc6/0025-fastboot-turn-the-USB-hostcontroller-initcalls-into.patch new file mode 100644 index 0000000000..75d4151b3b --- /dev/null +++ b/meta/packages/linux/linux-moblin-2.6.27-rc6/0025-fastboot-turn-the-USB-hostcontroller-initcalls-into.patch | |||
@@ -0,0 +1,62 @@ | |||
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 | diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c | ||
22 | index 369a8a5..8f84b17 100644 | ||
23 | --- a/drivers/usb/host/ehci-hcd.c | ||
24 | +++ b/drivers/usb/host/ehci-hcd.c | ||
25 | @@ -1101,7 +1101,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 | diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c | ||
35 | index a8160d6..e060ed1 100644 | ||
36 | --- a/drivers/usb/host/ohci-hcd.c | ||
37 | +++ b/drivers/usb/host/ohci-hcd.c | ||
38 | @@ -1165,7 +1165,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 | diff --git a/drivers/usb/host/uhci-hcd.c b/drivers/usb/host/uhci-hcd.c | ||
48 | index 3a7bfe7..f2a05ac 100644 | ||
49 | --- a/drivers/usb/host/uhci-hcd.c | ||
50 | +++ b/drivers/usb/host/uhci-hcd.c | ||
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); | ||
60 | -- | ||
61 | 1.5.4.3 | ||
62 | |||