summaryrefslogtreecommitdiffstats
path: root/drivers/base/power/main.c
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2013-04-12 09:41:06 +0000
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-04-12 13:34:57 +0200
commitaf93933974d7b4dd1f9003e50bae239760fc7978 (patch)
tree924b702fbb17f810b7c76355adc6d9313ca839f0 /drivers/base/power/main.c
parent31880c37c11e28cb81c70757e38392b42e695dc6 (diff)
downloadop-kernel-dev-af93933974d7b4dd1f9003e50bae239760fc7978.zip
op-kernel-dev-af93933974d7b4dd1f9003e50bae239760fc7978.tar.gz
PM / Runtime: Asyncronous idle|suspend devices at system resume
Use the asyncronous runtime PM API when returning the runtime reference for the device after the system resume is completed. By using the asyncronous runtime PM API we don't have to wait for each an every device 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/main.c')
-rw-r--r--drivers/base/power/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/power/main.c b/drivers/base/power/main.c
index 15beb50..5a9b656 100644
--- a/drivers/base/power/main.c
+++ b/drivers/base/power/main.c
@@ -756,7 +756,7 @@ static void device_complete(struct device *dev, pm_message_t state)
device_unlock(dev);
- pm_runtime_put_sync(dev);
+ pm_runtime_put(dev);
}
/**
OpenPOWER on IntegriCloud