diff options
author | Arve Hjønnevåg <arve@android.com> | 2012-05-01 21:33:34 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2012-05-05 21:50:41 +0200 |
commit | 4d7e30d98939a0340022ccd49325a3d70f7e0238 (patch) | |
tree | 45307bd3a0b7fafc71aea41fc518f42e2e810e76 /lib/dynamic_queue_limits.c | |
parent | PM / Sleep: Add user space interface for manipulating wakeup sources, v3 (diff) | |
download | linux-4d7e30d98939a0340022ccd49325a3d70f7e0238.tar.xz linux-4d7e30d98939a0340022ccd49325a3d70f7e0238.zip |
epoll: Add a flag, EPOLLWAKEUP, to prevent suspend while epoll events are ready
When an epoll_event, that has the EPOLLWAKEUP flag set, is ready, a
wakeup_source will be active to prevent suspend. This can be used to
handle wakeup events from a driver that support poll, e.g. input, if
that driver wakes up the waitqueue passed to epoll before allowing
suspend.
Signed-off-by: Arve Hjønnevåg <arve@android.com>
Reviewed-by: NeilBrown <neilb@suse.de>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'lib/dynamic_queue_limits.c')
0 files changed, 0 insertions, 0 deletions