From: Arve Hjønnevåg Date: Tue, 1 May 2012 19:33:34 +0000 (+0200) Subject: epoll: Add a flag, EPOLLWAKEUP, to prevent suspend while epoll events are ready X-Git-Tag: v3.5-rc1~116^2~3^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d7e30d98939a0340022ccd49325a3d70f7e0238;p=pandora-kernel.git 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 Reviewed-by: NeilBrown Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed