summaryrefslogtreecommitdiffstats
path: root/meta-moblin/packages/linux/linux-moblin-2.6.27/0026-fastboot-convert-a-few-non-critical-ACPI-drivers-to.patch
blob: 4b10a93108e1c90e8108fe664aa36c00af768a6f (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
From 60ddc2e5c44b4b9f5fcb440065469eacbeabf5eb Mon Sep 17 00:00:00 2001
From: Arjan van de Ven <arjan@linux.intel.com>
Date: Fri, 18 Jul 2008 15:17:35 -0700
Subject: [PATCH] fastboot: convert a few non-critical ACPI drivers to async initcalls

This patch converts a few non-critical ACPI drivers to async initcalls;
these initcalls (battery, button and thermal) tend to take quite a bit of
time (100's of milliseconds) due to the hardware they need to talk to,
but are otherwise clearly non-essential for the boot process.

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
 drivers/acpi/battery.c |    2 +-
 drivers/acpi/button.c  |    2 +-
 drivers/acpi/thermal.c |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

Index: linux-2.6.27/drivers/acpi/battery.c
===================================================================
--- linux-2.6.27.orig/drivers/acpi/battery.c	2008-10-14 16:55:15.000000000 +0200
+++ linux-2.6.27/drivers/acpi/battery.c	2008-10-14 17:01:33.000000000 +0200
@@ -904,5 +904,5 @@ static void __exit acpi_battery_exit(voi
 #endif
 }
 
-module_init(acpi_battery_init);
+module_init_async(acpi_battery_init);
 module_exit(acpi_battery_exit);
Index: linux-2.6.27/drivers/acpi/button.c
===================================================================
--- linux-2.6.27.orig/drivers/acpi/button.c	2008-10-14 16:55:15.000000000 +0200
+++ linux-2.6.27/drivers/acpi/button.c	2008-10-14 17:01:33.000000000 +0200
@@ -545,5 +545,5 @@ static void __exit acpi_button_exit(void
 	remove_proc_entry(ACPI_BUTTON_CLASS, acpi_root_dir);
 }
 
-module_init(acpi_button_init);
+module_init_async(acpi_button_init);
 module_exit(acpi_button_exit);
Index: linux-2.6.27/drivers/acpi/thermal.c
===================================================================
--- linux-2.6.27.orig/drivers/acpi/thermal.c	2008-10-14 16:55:15.000000000 +0200
+++ linux-2.6.27/drivers/acpi/thermal.c	2008-10-14 17:01:33.000000000 +0200
@@ -1876,5 +1876,5 @@ static void __exit acpi_thermal_exit(voi
 	return;
 }
 
-module_init(acpi_thermal_init);
+module_init_async(acpi_thermal_init);
 module_exit(acpi_thermal_exit);