Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 280353
b: refs/heads/master
c: 6a76b7a
h: refs/heads/master
i:
  280351: 07083be
v: v3
  • Loading branch information
Srivatsa S. Bhat authored and Rafael J. Wysocki committed Nov 23, 2011
1 parent b7dd224 commit 4879909
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 341d4166175e9b7911444f5a33b1c9efb8f15c85
refs/heads/master: 6a76b7a9cc93dec6ae58d70f1257d234291908e0
4 changes: 4 additions & 0 deletions trunk/include/linux/suspend.h
Original file line number Diff line number Diff line change
Expand Up @@ -380,12 +380,16 @@ static inline void unlock_system_sleep(void) {}

static inline void lock_system_sleep(void)
{
/* simplified freezer_do_not_count() */
current->flags |= PF_FREEZER_SKIP;
mutex_lock(&pm_mutex);
}

static inline void unlock_system_sleep(void)
{
mutex_unlock(&pm_mutex);
/* simplified freezer_count() */
current->flags &= ~PF_FREEZER_SKIP;
}
#endif

Expand Down

0 comments on commit 4879909

Please sign in to comment.