kernel_optimize_test/drivers/acpi
Rafael J. Wysocki bc9b6407bd ACPI / PM: Rework the handling of devices depending on power resources
Commit 0090def6 (ACPI: Add interface to register/unregister device
to/from power resources) made it possible to indicate to the ACPI
core that if the given device depends on any power resources, then
it should be resumed as soon as all of the power resources required
by it to transition to the D0 power state have been turned on.

Unfortunately, however, this was a mistake, because all devices
depending on power resources should be treated this way (i.e. they
should be resumed when all power resources required by their D0
state have been turned on) and for the majority of those devices
the ACPI core can figure out by itself which (physical) devices
depend on what power resources.

For this reason, replace the code added by commit 0090def6 with a
new, much more straightforward, mechanism that will be used
internally by the ACPI core and remove all references to that code
from kernel subsystems using ACPI.

For the cases when there are (physical) devices that should be
resumed whenever a not directly related ACPI device node goes into
D0 as a result of power resources configuration changes, like in
the SATA case, add two new routines, acpi_dev_pm_add_dependent()
and acpi_dev_pm_remove_dependent(), allowing subsystems to manage
such dependencies.  Convert the SATA subsystem to use the new
functions accordingly.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2013-01-17 14:11:05 +01:00
..
acpica
apei
ac.c
acpi_i2c.c
acpi_ipmi.c
acpi_memhotplug.c Merge branch 'acpi-scan' into acpi-pm 2013-01-17 14:10:27 +01:00
acpi_pad.c
acpi_platform.c
battery.c
bgrt.c
blacklist.c
bus.c
button.c
cm_sbs.c
container.c
custom_method.c
debugfs.c
device_pm.c ACPI / PM: Rework the handling of devices depending on power resources 2013-01-17 14:11:05 +01:00
dock.c ACPI / scan: Drop the second argument of acpi_bus_trim() 2013-01-15 13:23:53 +01:00
ec_sys.c
ec.c
event.c
fan.c
glue.c Merge branch 'acpi-scan' into acpi-pm 2013-01-17 14:10:27 +01:00
hed.c
internal.h ACPI / PM: Rework the handling of devices depending on power resources 2013-01-17 14:11:05 +01:00
Kconfig
Makefile
numa.c
nvs.c
osl.c
pci_irq.c
pci_link.c
pci_root.c
pci_slot.c
power.c ACPI / PM: Rework the handling of devices depending on power resources 2013-01-17 14:11:05 +01:00
proc.c
processor_core.c
processor_driver.c ACPI: update ej_event interface to take acpi_device 2013-01-15 13:24:59 +01:00
processor_idle.c
processor_perflib.c
processor_thermal.c
processor_throttling.c
reboot.c
resource.c
sbs.c
sbshc.c
sbshc.h
scan.c ACPI / PM: Rework the handling of devices depending on power resources 2013-01-17 14:11:05 +01:00
sleep.c
sleep.h
sysfs.c
tables.c
thermal.c
utils.c
video_detect.c
video.c
wakeup.c