1
linux/Documentation/power
Rafael J. Wysocki 45f0a85c82 PM / Runtime: Rework the "runtime idle" helper routine
The "runtime idle" helper routine, rpm_idle(), currently ignores
return values from .runtime_idle() callbacks executed by it.
However, it turns out that many subsystems use
pm_generic_runtime_idle() which checks the return value of the
driver's callback and executes pm_runtime_suspend() for the device
unless that value is not 0.  If that logic is moved to rpm_idle()
instead, pm_generic_runtime_idle() can be dropped and its users
will not need any .runtime_idle() callbacks any more.

Moreover, the PCI, SCSI, and SATA subsystems' .runtime_idle()
routines, pci_pm_runtime_idle(), scsi_runtime_idle(), and
ata_port_runtime_idle(), respectively, as well as a few drivers'
ones may be simplified if rpm_idle() calls rpm_suspend() after 0 has
been returned by the .runtime_idle() callback executed by it.

To reduce overall code bloat, make the changes described above.

Tested-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Tested-by: Kevin Hilman <khilman@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Kevin Hilman <khilman@linaro.org>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
2013-06-03 21:49:52 +02:00
..
regulator regulator: Update regulator_register() API signature in Documentation 2012-04-13 09:54:45 +01:00
00-INDEX PM / Documentation: Update docs about suspend and CPU hotplug 2011-10-22 00:22:28 +02:00
apm-acpi.txt
basic-pm-debugging.txt PM / Documentation: Fix spelling mistake in basic-pm-debugging.txt 2012-01-19 23:22:38 +01:00
charger-manager.txt charger-manager: Provide cm_notify_event function for in-kernel use 2012-05-05 19:51:58 -07:00
devices.txt PM: Documentation update for freeze state 2013-05-14 01:41:37 +02:00
drivers-testing.txt
freezing-of-tasks.txt suspend: enable freeze timeout configuration through sys 2013-02-09 22:32:48 +01:00
interface.txt PM: Documentation update for freeze state 2013-05-14 01:41:37 +02:00
notifiers.txt PM / hibernate: Correct documentation 2013-05-14 01:58:43 +02:00
opp.txt PM / OPP: improve introductory documentation 2013-03-04 14:23:11 +01:00
pci.txt
pm_qos_interface.txt PM / QoS: Introduce PM QoS device flags support 2012-10-23 01:09:12 +02:00
power_supply_class.txt power_supply: Add support for CHARGE_CONTROL_* attributes 2012-11-17 20:21:43 -08:00
runtime_pm.txt PM / Runtime: Rework the "runtime idle" helper routine 2013-06-03 21:49:52 +02:00
s2ram.txt
states.txt PM / Documentation: remove inaccurate suspend/hibernate transition lantency statement 2013-05-14 01:46:50 +02:00
suspend-and-cpuhotplug.txt PM / Documentation: suspend-and-cpuhotplug.txt: Fix typo 2012-05-05 21:52:51 +02:00
swsusp-and-swap-files.txt
swsusp-dmcrypt.txt
swsusp.txt doc: fix broken utf8 encoding 2012-09-01 10:24:06 -07:00
tricks.txt
userland-swsusp.txt doc: fix broken references 2011-09-27 18:08:04 +02:00
video_extension.txt
video.txt