PM / Runtime: Improve prepare handling at system suspend for genpd
authorUlf Hansson <ulf.hansson@linaro.org>
Fri, 12 Apr 2013 09:41:44 +0000 (09:41 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 12 Apr 2013 11:34:57 +0000 (13:34 +0200)
commit841670351e8e5acbe9f7367f7df661a5d0cfef79
treed5140bbf9a2c8f5015c416bafc82ec89f2951d4a
parentdb28dfac99983e70b5a93b6c81c43d2c74fde20d
PM / Runtime: Improve prepare handling at system suspend for genpd

When genpd prepares for a system suspend it will fetch a runtime
reference for the device. When returning it we now use the
asyncronous runtime PM API. Thus we don't have to wait for the
device to become idle|suspended before we 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/domain.c