alistair23-linux/Documentation/power
Colin Cross 311aab73d2 PM / Runtime: Add might_sleep() to runtime PM functions
Some of the entry points to pm runtime are not safe to
call in atomic context unless pm_runtime_irq_safe() has
been called.  Inspecting the code, it is not immediately
obvious that the functions sleep at all, as they run
inside a spin_lock_irqsave, but under some conditions
they can drop the lock and turn on irqs.

If a driver incorrectly calls the pm_runtime apis, it can
cause sleeping and irq processing when it expects to stay
in atomic context.

Add might_sleep_if to the majority of the __pm_runtime_* entry points
to enforce correct usage.

Add pm_runtime_put_sync_autosuspend to the list of
functions that can be called in atomic context.

Signed-off-by: Colin Cross <ccross@android.com>
Reviewed-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
2011-08-14 13:35:52 +02:00
..
regulator regulator: Remove supply_regulator_dev from machine configuration 2011-05-27 10:34:37 +01:00
00-INDEX PM: Introduce library for device-specific OPPs (v7) 2010-10-17 01:57:50 +02:00
apm-acpi.txt Documentation: update broken web addresses. 2010-08-04 15:21:40 +02:00
basic-pm-debugging.txt Documentation: update broken web addresses. 2010-08-04 15:21:40 +02:00
devices.txt PM / Runtime: Update documentation of interactions with system sleep 2011-07-02 14:30:09 +02:00
drivers-testing.txt PM: Fix references to basic-pm-debugging.txt in drivers-testing.txt 2010-12-24 15:02:41 +01:00
freezing-of-tasks.txt
interface.txt PM / Hibernate: Make default image size depend on total RAM size 2010-10-17 01:57:43 +02:00
notifiers.txt PM: Allow drivers to allocate memory from .prepare() callbacks safely 2011-05-17 23:26:00 +02:00
opp.txt PM / OPP: Introduce function to free cpufreq table 2011-07-15 23:58:18 +02:00
pci.txt
pm_qos_interface.txt
power_supply_class.txt
runtime_pm.txt PM / Runtime: Add might_sleep() to runtime PM functions 2011-08-14 13:35:52 +02:00
s2ram.txt PM: Add sysfs attr for rechecking dev hash from PM trace 2010-10-17 01:57:50 +02:00
states.txt PM: Documentation/power/states.txt: fix repetition 2011-03-15 00:43:17 +01:00
swsusp-and-swap-files.txt
swsusp-dmcrypt.txt
swsusp.txt Fix common misspellings 2011-03-31 11:26:23 -03:00
tricks.txt
userland-swsusp.txt Fix common misspellings 2011-03-31 11:26:23 -03:00
video.txt Documentation: update broken web addresses. 2010-08-04 15:21:40 +02:00
video_extension.txt