linux/drivers/base/power
Colin Cross b1d0d5fe07 PM: runtime: add might_sleep to PM runtime functions
The list of functions that can be called in atomic context is
non-intuitive (pm_runtime_put_sync can not, but
pm_runtime_put_sync_suspend can, if pm_runtime_irq_safe has
been called?).  The code is actively misleading - the entry
points all start with spin_lock_irqsave, suggesting they
are safe to call in atomic context, but may later
enable interrupts.

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

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

Change-Id: Icac17a10d77c64d44bd2761a91a588dfd1d0c6f0
Signed-off-by: Colin Cross <ccross@android.com>
2011-09-23 20:08:51 -07:00
..
clock_ops.c PM / Runtime: Handle clocks correctly if CONFIG_PM_RUNTIME is unset 2011-06-21 23:24:33 +02:00
generic_ops.c PM: Introduce generic prepare and complete callbacks for subsystems 2011-05-17 23:26:21 +02:00
main.c Merge commit 'v3.0-rc5' into android-3.0 2011-06-29 13:54:42 -07:00
Makefile PM: Remove CONFIG_PM_VERBOSE 2011-05-17 23:25:10 +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: runtime: add might_sleep to PM runtime functions 2011-09-23 20:08:51 -07: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