]> git.karo-electronics.de Git - karo-tx-linux.git/commit
PM / Runtime: Don't run callbacks under lock for power.irq_safe set
authorRafael J. Wysocki <rjw@sisk.pl>
Mon, 26 Sep 2011 18:23:11 +0000 (20:23 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Mon, 26 Sep 2011 18:23:11 +0000 (20:23 +0200)
commit03c9d7706814984aa01d27e86d3e78faa4a5e0d5
treeb4bcb4a00f2c2028f47fe3ac6b9d0dfb01507c37
parent2e6ba515f50ef7ddf35b2703d014d3216c9b8b24
PM / Runtime: Don't run callbacks under lock for power.irq_safe set

The rpm_suspend() and rpm_resume() routines execute subsystem or PM
domain callbacks under power.lock if power.irq_safe is set for the
given device.  This is inconsistent with that rpm_idle() does after
commit 02b2677 (PM / Runtime: Allow _put_sync() from
interrupts-disabled context) and is problematic for subsystems and PM
domains wanting to use power.lock for synchronization in their
runtime PM callbacks.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Reviewed-by: Ming Lei <tom.leiming@gmail.com>
drivers/base/power/runtime.c