diff options
| author | Ulf Hansson <ulf.hansson@linaro.org> | 2013-04-12 05:41:44 -0400 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-04-12 07:34:57 -0400 |
| commit | 841670351e8e5acbe9f7367f7df661a5d0cfef79 (patch) | |
| tree | d5140bbf9a2c8f5015c416bafc82ec89f2951d4a | |
| parent | db28dfac99983e70b5a93b6c81c43d2c74fde20d (diff) | |
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>
| -rw-r--r-- | drivers/base/power/domain.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c index bba575841f53..7072404c8b6d 100644 --- a/drivers/base/power/domain.c +++ b/drivers/base/power/domain.c | |||
| @@ -920,7 +920,7 @@ static int pm_genpd_prepare(struct device *dev) | |||
| 920 | pm_wakeup_event(dev, 0); | 920 | pm_wakeup_event(dev, 0); |
| 921 | 921 | ||
| 922 | if (pm_wakeup_pending()) { | 922 | if (pm_wakeup_pending()) { |
| 923 | pm_runtime_put_sync(dev); | 923 | pm_runtime_put(dev); |
| 924 | return -EBUSY; | 924 | return -EBUSY; |
| 925 | } | 925 | } |
| 926 | 926 | ||
| @@ -961,7 +961,7 @@ static int pm_genpd_prepare(struct device *dev) | |||
| 961 | pm_runtime_enable(dev); | 961 | pm_runtime_enable(dev); |
| 962 | } | 962 | } |
| 963 | 963 | ||
| 964 | pm_runtime_put_sync(dev); | 964 | pm_runtime_put(dev); |
| 965 | return ret; | 965 | return ret; |
| 966 | } | 966 | } |
| 967 | 967 | ||
