Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 235138
b: refs/heads/master
c: 378eef9
h: refs/heads/master
v: v3
  • Loading branch information
Rafael J. Wysocki committed Mar 14, 2011
1 parent 94ac46e commit 37a206d
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 023d3779145ec6b7a0f38f19672a347b92feb74e
refs/heads/master: 378eef99ad45700aabfba2bd962516e5608b259a
12 changes: 6 additions & 6 deletions trunk/drivers/base/power/wakeup.c
Original file line number Diff line number Diff line change
Expand Up @@ -616,25 +616,25 @@ bool pm_get_wakeup_count(unsigned int *count)
*
* If @count is equal to the current number of registered wakeup events and the
* current number of wakeup events being processed is zero, store @count as the
* old number of registered wakeup events to be used by pm_check_wakeup_events()
* and return true. Otherwise return false.
* old number of registered wakeup events for pm_check_wakeup_events(), enable
* wakeup events detection and return 'true'. Otherwise disable wakeup events
* detection and return 'false'.
*/
bool pm_save_wakeup_count(unsigned int count)
{
unsigned int cnt, inpr;
bool ret = false;

events_check_enabled = false;
spin_lock_irq(&events_lock);
split_counters(&cnt, &inpr);
if (cnt == count && inpr == 0) {
saved_count = count;
events_check_enabled = true;
ret = true;
}
spin_unlock_irq(&events_lock);
if (!ret)
if (!events_check_enabled)
pm_wakeup_update_hit_counts();
return ret;
return events_check_enabled;
}

static struct dentry *wakeup_sources_stats_dentry;
Expand Down

0 comments on commit 37a206d

Please sign in to comment.