linux/drivers/base/power
Rafael J. Wysocki 596ba34bcd PM / Domains: System-wide transitions support for generic domains (v5)
Make generic PM domains support system-wide power transitions
(system suspend and hibernation).  Add suspend, resume, freeze, thaw,
poweroff and restore callbacks to be associated with struct
generic_pm_domain objects and make pm_genpd_init() use them as
appropriate.

The new callbacks do nothing for devices belonging to power domains
that were powered down at run time (before the transition).  For the
other devices the action carried out depends on the type of the
transition.  During system suspend the power domain .suspend()
callback executes pm_generic_suspend() for the device, while the
PM domain .suspend_noirq() callback runs pm_generic_suspend_noirq()
for it, stops it and eventually removes power from the PM domain it
belongs to (after all devices in the domain have been stopped and its
subdomains have been powered off).

During system resume the PM domain .resume_noirq() callback
restores power to the PM domain (when executed for it first time),
starts the device and executes pm_generic_resume_noirq() for it,
while the .resume() callback executes pm_generic_resume() for the
device.  Finally, the .complete() callback executes pm_runtime_idle()
for the device which should put it back into the suspended state if
its runtime PM usage count is equal to zero at that time.

The actions carried out during hibernation and resume from it are
analogous to the ones described above.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Reviewed-by: Kevin Hilman <khilman@ti.com>
2011-07-02 14:29:56 +02:00
..
Makefile PM / Domains: Support for generic I/O PM domains (v8) 2011-07-02 14:29:55 +02:00
clock_ops.c PM / Domains: Rename struct dev_power_domain to struct dev_pm_domain 2011-07-02 14:29:54 +02:00
domain.c PM / Domains: System-wide transitions support for generic domains (v5) 2011-07-02 14:29:56 +02:00
generic_ops.c PM: Introduce generic "noirq" callback routines for subsystems (v2) 2011-07-02 14:29:55 +02:00
main.c PM / Domains: Rename struct dev_power_domain to struct dev_pm_domain 2011-07-02 14:29:54 +02:00
opp.c PM / OPP: opp_find_freq_exact() documentation fix 2011-03-15 00:43:17 +01:00
power.h PM: Do not create wakeup sysfs files for devices that cannot wake up 2011-03-15 00:43:14 +01:00
runtime.c PM / Domains: Rename struct dev_power_domain to struct dev_pm_domain 2011-07-02 14:29:54 +02:00
sysfs.c PM / Wakeup: Fix build warning related to the "wakeup" sysfs file 2011-05-17 23:19:18 +02:00
trace.c PM: Use appropriate printk() priority level in trace.c 2011-03-15 00:43:14 +01:00
wakeup.c PM / Wakeup: Remove useless synchronize_rcu() call 2011-05-17 23:19:19 +02:00