]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Input: Send events one packet at a time
authorHenrik Rydberg <rydberg@euromail.se>
Sat, 1 Sep 2012 05:37:52 +0000 (07:37 +0200)
committerHenrik Rydberg <rydberg@euromail.se>
Mon, 10 Sep 2012 17:59:58 +0000 (19:59 +0200)
commitb276fc1e875a51e4a9dc3322ed008bf4ae481baf
tree30597ebb98ef78abf6f926f052d3ac76d9d02bec
parent8fb3be46299f0d5e9f60aa8cd811a1dbfc81d69e
Input: Send events one packet at a time

On heavy event loads, such as a multitouch driver, the irqsoff latency
can be as high as 250 us.  By accumulating a frame worth of data
before passing it on, the latency can be dramatically reduced.  As a
side effect, the special EV_SYN handling can be removed, since the
frame is now atomic.

This patch adds the events() handler callback and uses it if it
exists. The latency is improved by 50 us even without the callback.

Cc: Daniel Kurtz <djkurtz@chromium.org>
Tested-by: Benjamin Tissoires <benjamin.tissoires@enac.fr>
Tested-by: Ping Cheng <pingc@wacom.com>
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
drivers/input/input.c
include/linux/input.h