summaryrefslogtreecommitdiffstats
path: root/drivers/base/power/runtime.c
diff options
context:
space:
mode:
authorUlf Hansson2013-04-12 11:41:30 +0200
committerRafael J. Wysocki2013-04-12 13:34:57 +0200
commitdb28dfac99983e70b5a93b6c81c43d2c74fde20d (patch)
tree92c1d839e09a49e20e00f8984c6f460a27b15aef /drivers/base/power/runtime.c
parentPM / Runtime: Asyncronous idle|suspend devices at system resume (diff)
downloadkernel-qcow2-linux-db28dfac99983e70b5a93b6c81c43d2c74fde20d.tar.gz
kernel-qcow2-linux-db28dfac99983e70b5a93b6c81c43d2c74fde20d.tar.xz
kernel-qcow2-linux-db28dfac99983e70b5a93b6c81c43d2c74fde20d.zip
PM / Runtime: Asyncronous idle|suspend parent devices at removal
For irq safe devices return the runtime reference for the parent by using the asyncronous runtime PM API. Thus we don't have to wait for it to become idle|suspended. Instead we can move on and handle the next device in queue. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/base/power/runtime.c')
-rw-r--r--drivers/base/power/runtime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/power/runtime.c b/drivers/base/power/runtime.c
index 1244930e3d7a..ef13ad08afb2 100644
--- a/drivers/base/power/runtime.c
+++ b/drivers/base/power/runtime.c
@@ -1400,5 +1400,5 @@ void pm_runtime_remove(struct device *dev)
if (dev->power.runtime_status == RPM_ACTIVE)
pm_runtime_set_suspended(dev);
if (dev->power.irq_safe && dev->parent)
- pm_runtime_put_sync(dev->parent);
+ pm_runtime_put(dev->parent);
}