summaryrefslogtreecommitdiff
path: root/drivers/input/keyboard/qt1070.c
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@android.com>2011-04-26 22:16:11 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2011-04-26 22:16:38 -0700
commitcdda911c34006f1089f3c87b1a1f31ab3a4722f2 (patch)
tree436a244dfc080bb694337797e98699c68d94f67b /drivers/input/keyboard/qt1070.c
parent03351ff4d897098a590cb247b6eebc470b8ecb5a (diff)
downloadlinux-3.10-cdda911c34006f1089f3c87b1a1f31ab3a4722f2.tar.gz
linux-3.10-cdda911c34006f1089f3c87b1a1f31ab3a4722f2.tar.bz2
linux-3.10-cdda911c34006f1089f3c87b1a1f31ab3a4722f2.zip
Input: evdev - only signal polls on full packets
This patch modifies evdev so that it only becomes readable when the buffer contains an EV_SYN/SYN_REPORT event. On SMP systems, it is possible for an evdev client blocked on poll() to wake up and read events from the evdev ring buffer at the same rate as they are enqueued. This can result in high CPU usage, particularly for MT devices, because the client ends up reading events one at a time instead of reading complete packets. We eliminate this problem by making the device readable only when the buffer contains at least one complete packet. This causes clients to block until the entire packet is available. Signed-off-by: Jeff Brown <jeffbrown@android.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/keyboard/qt1070.c')
0 files changed, 0 insertions, 0 deletions