Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202540
b: refs/heads/master
c: 2430d12
h: refs/heads/master
v: v3
  • Loading branch information
Alan Stern authored and Rafael J. Wysocki committed Jul 18, 2010
1 parent 1a1312e commit 680644c
Show file tree
Hide file tree
Showing 2 changed files with 8 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: 90133673395849c9d4e66a563f2d0d91d92aa461
refs/heads/master: 2430d12c94ff2bafcfe4f65edf7ee5f300d2d9c6
10 changes: 7 additions & 3 deletions trunk/include/linux/pm_wakeup.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@

#ifdef CONFIG_PM

/* changes to device_may_wakeup take effect on the next pm state change.
* by default, devices should wakeup if they can.
/* Changes to device_may_wakeup take effect on the next pm state change.
*
* By default, most devices should leave wakeup disabled. The exceptions
* are devices that everyone expects to be wakeup sources: keyboards,
* power buttons, possibly network interfaces, etc.
*/
static inline void device_init_wakeup(struct device *dev, bool val)
{
Expand Down Expand Up @@ -59,14 +62,15 @@ static inline bool device_may_wakeup(struct device *dev)

#else /* !CONFIG_PM */

/* For some reason the next two routines work even without CONFIG_PM */
/* For some reason the following routines work even without CONFIG_PM */
static inline void device_init_wakeup(struct device *dev, bool val)
{
dev->power.can_wakeup = val;
}

static inline void device_set_wakeup_capable(struct device *dev, bool capable)
{
dev->power.can_wakeup = capable;
}

static inline bool device_can_wakeup(struct device *dev)
Expand Down

0 comments on commit 680644c

Please sign in to comment.