Skip to content
Commit 4d7e30d9 authored by Arve Hjønnevåg's avatar Arve Hjønnevåg Committed by Rafael J. Wysocki
Browse files

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: default avatarArve Hjønnevåg <arve@android.com>
Reviewed-by: default avatarNeilBrown <neilb@suse.de>
Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
parent b86ff982
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment