Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 235139
b: refs/heads/master
c: 790c788
h: refs/heads/master
i:
  235137: 94ac46e
  235135: 3b2a09b
v: v3
  • Loading branch information
Rafael J. Wysocki committed Mar 14, 2011
1 parent 37a206d commit 11956b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 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: 378eef99ad45700aabfba2bd962516e5608b259a
refs/heads/master: 790c7885a4b2105e41f7a80b035fdb78e406154f
7 changes: 2 additions & 5 deletions trunk/drivers/base/power/wakeup.c
Original file line number Diff line number Diff line change
Expand Up @@ -586,17 +586,14 @@ bool pm_wakeup_pending(void)
* Store the number of registered wakeup events at the address in @count. Block
* if the current number of wakeup events being processed is nonzero.
*
* Return false if the wait for the number of wakeup events being processed to
* Return 'false' if the wait for the number of wakeup events being processed to
* drop down to zero has been interrupted by a signal (and the current number
* of wakeup events being processed is still nonzero). Otherwise return true.
* of wakeup events being processed is still nonzero). Otherwise return 'true'.
*/
bool pm_get_wakeup_count(unsigned int *count)
{
unsigned int cnt, inpr;

if (capable(CAP_SYS_ADMIN))
events_check_enabled = false;

for (;;) {
split_counters(&cnt, &inpr);
if (inpr == 0 || signal_pending(current))
Expand Down

0 comments on commit 11956b3

Please sign in to comment.