Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 223399
b: refs/heads/master
c: f08f5a0
h: refs/heads/master
i:
  223397: eadf19f
  223395: 881f115
  223391: bd6ba77
v: v3
  • Loading branch information
Rafael J. Wysocki committed Dec 16, 2010
1 parent 43392a4 commit b133c00
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 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: be8cd644c49dca4212e975455c8e7119b848ebe8
refs/heads/master: f08f5a0add20834d3f3d876dfe08005a5df656db
4 changes: 2 additions & 2 deletions trunk/Documentation/power/runtime_pm.txt
Original file line number Diff line number Diff line change
Expand Up @@ -379,8 +379,8 @@ drivers/base/power/runtime.c and include/linux/pm_runtime.h:
zero)

bool pm_runtime_suspended(struct device *dev);
- return true if the device's runtime PM status is 'suspended', or false
otherwise
- return true if the device's runtime PM status is 'suspended' and its
'power.disable_depth' field is equal to zero, or false otherwise

void pm_runtime_allow(struct device *dev);
- set the power.runtime_auto flag for the device and decrease its usage
Expand Down
3 changes: 2 additions & 1 deletion trunk/include/linux/pm_runtime.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ static inline void device_set_run_wake(struct device *dev, bool enable)

static inline bool pm_runtime_suspended(struct device *dev)
{
return dev->power.runtime_status == RPM_SUSPENDED;
return dev->power.runtime_status == RPM_SUSPENDED
&& !dev->power.disable_depth;
}

static inline void pm_runtime_mark_last_busy(struct device *dev)
Expand Down

0 comments on commit b133c00

Please sign in to comment.