aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2010-01-05 20:56:04 -0500
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2010-01-06 03:17:04 -0500
commit30a589fde0162aa4dac7c69803aeee8fbe8d1b82 (patch)
tree19cb0a9774daa4ad010ed5595ee1ac2ed590797b /arch
parent0ef7a26af1278f7ec0b718148e88f01ba1953835 (diff)
Input: evdev - be less aggressive about sending SIGIO notifies
When using realtime signals, we'll enqueue one signal for every event. This is unfortunate, because (for example) keyboard presses are three events: key, msc scancode, and syn. They'll be enqueued fast enough in kernel space that all three events will be ready to read by the time userspace runs, so the first invocation of the signal handler will read all three events, but then the second two invocations still have to run to do no work. Instead, only send the SIGIO notification on syn events. This is a slight abuse of SIGIO semantics, in principle it ought to fire as soon as any events are readable. But it matches evdev semantics, which is more important since SIGIO is rather vaguely defined to begin with. Signed-off-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions