1 From 60ddc2e5c44b4b9f5fcb440065469eacbeabf5eb Mon Sep 17 00:00:00 2001
2 From: Arjan van de Ven <arjan@linux.intel.com>
3 Date: Fri, 18 Jul 2008 15:17:35 -0700
4 Subject: [PATCH] fastboot: convert a few non-critical ACPI drivers to async initcalls
6 This patch converts a few non-critical ACPI drivers to async initcalls;
7 these initcalls (battery, button and thermal) tend to take quite a bit of
8 time (100's of milliseconds) due to the hardware they need to talk to,
9 but are otherwise clearly non-essential for the boot process.
11 Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
12 Signed-off-by: Ingo Molnar <mingo@elte.hu>
14 drivers/acpi/battery.c | 2 +-
15 drivers/acpi/button.c | 2 +-
16 drivers/acpi/thermal.c | 2 +-
17 3 files changed, 3 insertions(+), 3 deletions(-)
19 diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c
20 index b1c723f..d5d30ca 100644
21 --- a/drivers/acpi/battery.c
22 +++ b/drivers/acpi/battery.c
23 @@ -904,5 +904,5 @@ static void __exit acpi_battery_exit(void)
27 -module_init(acpi_battery_init);
28 +module_init_async(acpi_battery_init);
29 module_exit(acpi_battery_exit);
30 diff --git a/drivers/acpi/button.c b/drivers/acpi/button.c
31 index 1dfec41..46b3805 100644
32 --- a/drivers/acpi/button.c
33 +++ b/drivers/acpi/button.c
34 @@ -545,5 +545,5 @@ static void __exit acpi_button_exit(void)
35 remove_proc_entry(ACPI_BUTTON_CLASS, acpi_root_dir);
38 -module_init(acpi_button_init);
39 +module_init_async(acpi_button_init);
40 module_exit(acpi_button_exit);
41 diff --git a/drivers/acpi/thermal.c b/drivers/acpi/thermal.c
42 index 84c795f..1f529af 100644
43 --- a/drivers/acpi/thermal.c
44 +++ b/drivers/acpi/thermal.c
45 @@ -1833,5 +1833,5 @@ static void __exit acpi_thermal_exit(void)
49 -module_init(acpi_thermal_init);
50 +module_init_async(acpi_thermal_init);
51 module_exit(acpi_thermal_exit);