evdevtouch: Don't try to keep reading on EAGAIN
authorRobin Burchell <robin.burchell@jollamobile.com>
Wed, 22 Jan 2014 10:49:16 +0000 (11:49 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 24 Jan 2014 19:54:52 +0000 (20:54 +0100)
commita4e703764e5f174fc6ca3f919e3acf44203dad91
tree8302a2cc776245e98d3e239a34361348fff499b4
parentac2988477204c4efe5d4b60de89270bade35dde1
evdevtouch: Don't try to keep reading on EAGAIN

This stops touching the screen (and not moving) consuming 80-90% CPU.
The mtdev and non-mtdev codepaths have been separated for additional clarity.

Change-Id: I0559a6bd80dab961fdb4a83ad50860a9aec6445c
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
src/platformsupport/input/evdevtouch/qevdevtouch.cpp