android_kernel_google_msm/drivers/input
Henrik Rydberg 468de4793b 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.

Change-Id: Iebd9b1868ae6300a922a45b6d104e7c2b38e4cf5
Cc: Daniel Kurtz <djkurtz@chromium.org>
Tested-by: Benjamin Tissoires <benjamin.tissoires@enac.fr>
Tested-by: Ping Cheng <pingc@wacom.com>
Tested-by: Sedat Dilek <sedat.dilek@gmail.com>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>

Input: Improve the events-per-packet estimate

The events-per-packet estimate has so far been used by MT devices
only. This patch adjusts the packet buffer size to also accomodate the
KEY and MSC events.  Keyboards normally send one or two keys at a
time. MT devices normally send a number of button keys along with the
MT information.  The buffer size chosen here covers those cases, and
matches the default buffer size in evdev. Since the input estimate is
now preferred, remove the special input-mt estimate.

Reviewed-and-tested-by: Ping Cheng <pingc@wacom.com>
Tested-by: Benjamin Tissoires <benjamin.tissoires@enac.fr>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Signed-off-by: flar2 <asegaert@gmail.com>
2019-03-16 12:46:33 +01:00
..
gameport
joystick Merge remote-tracking branch 'stable/linux-3.4.y' into lineage-15.1 2017-12-27 17:13:15 +03:00
keyboard Merge branch 'lineage-15.1' into followmsi-oreo 2018-01-03 19:05:35 +01:00
misc ANDROID: keychord: Fix for a memory leak in keychord. 2018-01-13 17:13:41 +03:00
mouse Merge remote-tracking branch 'stable/linux-3.4.y' into lineage-15.1 2017-12-27 17:13:15 +03:00
serio Input: I8042 - add Acer Aspire 7738 to the nomux list 2015-04-14 17:33:51 +08:00
tablet Merge remote-tracking branch 'stable/linux-3.4.y' into lineage-15.1 2017-12-27 17:13:15 +03:00
touchscreen CONFIG_WAKE_TIMEOUT: default n 2019-01-21 13:53:42 +01:00
apm-power.c
evbug.c
evdev.c
ff-core.c
ff-memless.c
fixp-arith.h
input-compat.c
input-compat.h
input-mt.c Input: Send events one packet at a time 2019-03-16 12:46:33 +01:00
input-polldev.c
input.c Input: Send events one packet at a time 2019-03-16 12:46:33 +01:00
joydev.c
Kconfig Merge remote-tracking branch 'stable/linux-3.4.y' into lineage-15.1 2017-12-27 17:13:15 +03:00
keyreset.c input: keyreset: add support for reset after timeout 2013-03-04 12:47:30 -08:00
lid.c Disable s2w/dt2w when magnetic cover is used 2017-10-28 12:57:24 +02:00
Makefile flo: lid: add hall sensor driver 2013-04-18 16:08:42 -07:00
mousedev.c
of_keymap.c
sparse-keymap.c