diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-04-27 19:54:22 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-04-27 19:54:22 -0400 |
commit | 0acaab5367a2c4140bd965a0ad3ea265af4d43ed (patch) | |
tree | 944fc8279a28c94e136325ec337ebe216a129ec1 /drivers/base/power/domain.c | |
parent | c940c8ce1db3ed3909d31c02aef01a864565519c (diff) | |
parent | 841670351e8e5acbe9f7367f7df661a5d0cfef79 (diff) |
Merge branch 'pm-runtime'
* pm-runtime:
PM / Runtime: Improve prepare handling at system suspend for genpd
PM / Runtime: Asyncronous idle|suspend parent devices at removal
PM / Runtime: Asyncronous idle|suspend devices at system resume
Diffstat (limited to 'drivers/base/power/domain.c')
-rw-r--r-- | drivers/base/power/domain.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c index 9a6b05a35603..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 | ||
@@ -1327,7 +1327,7 @@ static void pm_genpd_complete(struct device *dev) | |||
1327 | pm_generic_complete(dev); | 1327 | pm_generic_complete(dev); |
1328 | pm_runtime_set_active(dev); | 1328 | pm_runtime_set_active(dev); |
1329 | pm_runtime_enable(dev); | 1329 | pm_runtime_enable(dev); |
1330 | pm_runtime_idle(dev); | 1330 | pm_request_idle(dev); |
1331 | } | 1331 | } |
1332 | } | 1332 | } |
1333 | 1333 | ||