PM / Runtime: Asyncronous idle|suspend parent devices at removal
authorUlf Hansson <ulf.hansson@linaro.org>
Fri, 12 Apr 2013 09:41:30 +0000 (09:41 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 12 Apr 2013 11:34:57 +0000 (13:34 +0200)
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>
drivers/base/power/runtime.c

index 1244930e3d7a4ae73843afb7ecb34c356a5cc72b..ef13ad08afb2cf845340bb28463ad3df63e5b04b 100644 (file)
@@ -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);
 }
This page took 0.024802 seconds and 5 git commands to generate.