diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-16 12:24:44 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-16 12:24:44 -0400 |
commit | fc82e1d59a24cbac01c49d4eb3b28d6abc26a5f4 (patch) | |
tree | 5e01479d69e69dbbe483044b39afd2aa99d4f2b2 /drivers/acpi | |
parent | 48d5f6731837f0ec9a0e19ca763aa17d58385a98 (diff) | |
parent | bea3864fb627d110933cfb8babe048b63c4fc76e (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/suspend-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/suspend-2.6: (21 commits)
PM / Hibernate: Reduce autotuned default image size
PM / Core: Introduce struct syscore_ops for core subsystems PM
PM QoS: Make pm_qos settings readable
PM / OPP: opp_find_freq_exact() documentation fix
PM: Documentation/power/states.txt: fix repetition
PM: Make system-wide PM and runtime PM treat subsystems consistently
PM: Simplify kernel/power/Kconfig
PM: Add support for device power domains
PM: Drop pm_flags that is not necessary
PM: Allow pm_runtime_suspend() to succeed during system suspend
PM: Clean up PM_TRACE dependencies and drop unnecessary Kconfig option
PM: Remove CONFIG_PM_OPS
PM: Reorder power management Kconfig options
PM: Make CONFIG_PM depend on (CONFIG_PM_SLEEP || CONFIG_PM_RUNTIME)
PM / ACPI: Remove references to pm_flags from bus.c
PM: Do not create wakeup sysfs files for devices that cannot wake up
USB / Hub: Do not call device_set_wakeup_capable() under spinlock
PM: Use appropriate printk() priority level in trace.c
PM / Wakeup: Don't update events_check_enabled in pm_get_wakeup_count()
PM / Wakeup: Make pm_save_wakeup_count() work as documented
...
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/Kconfig | 1 | ||||
-rw-r--r-- | drivers/acpi/bus.c | 23 | ||||
-rw-r--r-- | drivers/acpi/sleep.c | 4 |
3 files changed, 8 insertions, 20 deletions
diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig index 2aa042a5da6d..3a17ca5fff6f 100644 --- a/drivers/acpi/Kconfig +++ b/drivers/acpi/Kconfig | |||
@@ -7,7 +7,6 @@ menuconfig ACPI | |||
7 | depends on !IA64_HP_SIM | 7 | depends on !IA64_HP_SIM |
8 | depends on IA64 || X86 | 8 | depends on IA64 || X86 |
9 | depends on PCI | 9 | depends on PCI |
10 | depends on PM | ||
11 | select PNP | 10 | select PNP |
12 | default y | 11 | default y |
13 | help | 12 | help |
diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c index 7ced61f39492..9749980ca6ca 100644 --- a/drivers/acpi/bus.c +++ b/drivers/acpi/bus.c | |||
@@ -40,6 +40,7 @@ | |||
40 | #include <acpi/acpi_bus.h> | 40 | #include <acpi/acpi_bus.h> |
41 | #include <acpi/acpi_drivers.h> | 41 | #include <acpi/acpi_drivers.h> |
42 | #include <linux/dmi.h> | 42 | #include <linux/dmi.h> |
43 | #include <linux/suspend.h> | ||
43 | 44 | ||
44 | #include "internal.h" | 45 | #include "internal.h" |
45 | 46 | ||
@@ -1006,8 +1007,7 @@ struct kobject *acpi_kobj; | |||
1006 | 1007 | ||
1007 | static int __init acpi_init(void) | 1008 | static int __init acpi_init(void) |
1008 | { | 1009 | { |
1009 | int result = 0; | 1010 | int result; |
1010 | |||
1011 | 1011 | ||
1012 | if (acpi_disabled) { | 1012 | if (acpi_disabled) { |
1013 | printk(KERN_INFO PREFIX "Interpreter disabled.\n"); | 1013 | printk(KERN_INFO PREFIX "Interpreter disabled.\n"); |
@@ -1022,29 +1022,18 @@ static int __init acpi_init(void) | |||
1022 | 1022 | ||
1023 | init_acpi_device_notify(); | 1023 | init_acpi_device_notify(); |
1024 | result = acpi_bus_init(); | 1024 | result = acpi_bus_init(); |
1025 | 1025 | if (result) { | |
1026 | if (!result) { | ||
1027 | pci_mmcfg_late_init(); | ||
1028 | if (!(pm_flags & PM_APM)) | ||
1029 | pm_flags |= PM_ACPI; | ||
1030 | else { | ||
1031 | printk(KERN_INFO PREFIX | ||
1032 | "APM is already active, exiting\n"); | ||
1033 | disable_acpi(); | ||
1034 | result = -ENODEV; | ||
1035 | } | ||
1036 | } else | ||
1037 | disable_acpi(); | 1026 | disable_acpi(); |
1038 | |||
1039 | if (acpi_disabled) | ||
1040 | return result; | 1027 | return result; |
1028 | } | ||
1041 | 1029 | ||
1030 | pci_mmcfg_late_init(); | ||
1042 | acpi_scan_init(); | 1031 | acpi_scan_init(); |
1043 | acpi_ec_init(); | 1032 | acpi_ec_init(); |
1044 | acpi_debugfs_init(); | 1033 | acpi_debugfs_init(); |
1045 | acpi_sleep_proc_init(); | 1034 | acpi_sleep_proc_init(); |
1046 | acpi_wakeup_device_init(); | 1035 | acpi_wakeup_device_init(); |
1047 | return result; | 1036 | return 0; |
1048 | } | 1037 | } |
1049 | 1038 | ||
1050 | subsys_initcall(acpi_init); | 1039 | subsys_initcall(acpi_init); |
diff --git a/drivers/acpi/sleep.c b/drivers/acpi/sleep.c index d6a8cd14de2e..8ea092fad3f6 100644 --- a/drivers/acpi/sleep.c +++ b/drivers/acpi/sleep.c | |||
@@ -585,7 +585,7 @@ int acpi_suspend(u32 acpi_state) | |||
585 | return -EINVAL; | 585 | return -EINVAL; |
586 | } | 586 | } |
587 | 587 | ||
588 | #ifdef CONFIG_PM_OPS | 588 | #ifdef CONFIG_PM |
589 | /** | 589 | /** |
590 | * acpi_pm_device_sleep_state - return preferred power state of ACPI device | 590 | * acpi_pm_device_sleep_state - return preferred power state of ACPI device |
591 | * in the system sleep state given by %acpi_target_sleep_state | 591 | * in the system sleep state given by %acpi_target_sleep_state |
@@ -671,7 +671,7 @@ int acpi_pm_device_sleep_state(struct device *dev, int *d_min_p) | |||
671 | *d_min_p = d_min; | 671 | *d_min_p = d_min; |
672 | return d_max; | 672 | return d_max; |
673 | } | 673 | } |
674 | #endif /* CONFIG_PM_OPS */ | 674 | #endif /* CONFIG_PM */ |
675 | 675 | ||
676 | #ifdef CONFIG_PM_SLEEP | 676 | #ifdef CONFIG_PM_SLEEP |
677 | /** | 677 | /** |