diff options
| author | 2019-09-24 12:52:47 +0100 | |
|---|---|---|
| committer | 2019-09-25 17:43:10 +0000 | |
| commit | 2d0e948f83f508407c39e9c298f6c80783958152 (patch) | |
| tree | fa4aa3b8438cc0a09e68cb70378e2cb6b4fb261f /services/surfaceflinger/RegionSamplingThread.cpp | |
| parent | 685e178127934b310eb9ed8cf6b99ecd43d6b1db (diff) | |
Hold wakelock while handling device add/remove
EventHub is using epoll (with inotify) to monitor for input devices
being added or removed. This is done by setting a watch on the directory
/dev/input. After the device is added or removed, epoll_wait would
return, and the code would proceed to handle the event.
To ensure that the system is awake the entire time an input device is
being added or removed, use EPOLLWAKEUP for the inotify fd.
Bug: 141532209
Test: none
Change-Id: Ie23ef459bdecdf1df929c34781165e63cae313bf
Diffstat (limited to 'services/surfaceflinger/RegionSamplingThread.cpp')
0 files changed, 0 insertions, 0 deletions