Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 321798
b: refs/heads/master
c: 55d7ec4
h: refs/heads/master
v: v3
  • Loading branch information
Rafael J. Wysocki committed Aug 17, 2012
1 parent 90bd2e9 commit d103416
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 58a34de7b1a920d287d17d2ca08bc9aaf7e6d35b
refs/heads/master: 55d7ec4520e86d735d178c15d7df33d507bd43c6
8 changes: 2 additions & 6 deletions trunk/drivers/base/power/runtime.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ static int rpm_check_suspend_allowed(struct device *dev)
|| (dev->power.request_pending
&& dev->power.request == RPM_REQ_RESUME))
retval = -EAGAIN;
else if (__dev_pm_qos_read_value(dev) < 0)
retval = -EPERM;
else if (dev->power.runtime_status == RPM_SUSPENDED)
retval = 1;

Expand Down Expand Up @@ -402,12 +404,6 @@ static int rpm_suspend(struct device *dev, int rpmflags)
goto out;
}

if (__dev_pm_qos_read_value(dev) < 0) {
/* Negative PM QoS constraint means "never suspend". */
retval = -EPERM;
goto out;
}

__update_runtime_status(dev, RPM_SUSPENDING);

if (dev->pm_domain)
Expand Down

0 comments on commit d103416

Please sign in to comment.