summaryrefslogtreecommitdiffstats
path: root/kernel/power/power.h
diff options
context:
space:
mode:
authorRafael J. Wysocki <rjw@sisk.pl>2012-04-29 22:52:34 +0200
committerRafael J. Wysocki <rjw@sisk.pl>2012-05-01 21:24:59 +0200
commit60af1066913162c5dd13fad3b872a67b1eb7da0f (patch)
treebd2c66ce4c9f78625c018674feedd482a4da97f4 /kernel/power/power.h
parent52d136cc2cf6659ee247dbcc88c9e7bd7428ad06 (diff)
downloadlinux-60af1066913162c5dd13fad3b872a67b1eb7da0f.tar.bz2
PM / Sleep: Use wait queue to signal "no wakeup events in progress"
The current wakeup source deactivation code doesn't do anything when the counter of wakeup events in progress goes down to zero, which requires pm_get_wakeup_count() to poll that counter periodically. Although this reduces the average time it takes to deactivate a wakeup source, it also may lead to a substantial amount of unnecessary polling if there are extended periods of wakeup activity. Thus it seems reasonable to use a wait queue for signaling the "no wakeup events in progress" condition and remove the polling. Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Acked-by: mark gross <markgross@thegnar.org> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/power/power.h')
0 files changed, 0 insertions, 0 deletions