]> git.baikalelectronics.ru Git - kernel.git/commit
Input: allow drivers specify timestamp for input events
authorAtif Niyaz <atifniyaz@google.com>
Wed, 24 Jul 2019 19:26:31 +0000 (22:26 +0300)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 25 Jul 2019 08:12:20 +0000 (11:12 +0300)
commit353bc6f2724db88e0570a58c3d416b367f6a4436
tree307baa973004837a30e57d0a3dccc54f89e06604
parentdc972af1ebbbfd7ebe5daf551b12b9867c45f57b
Input: allow drivers specify timestamp for input events

Currently, evdev stamps events with timestamps acquired in evdev_events()
However, this timestamping may not be accurate in terms of measuring
when the actual event happened.

Let's allow individual drivers specify timestamp in order to provide a more
accurate sense of time for the event. It is expected that drivers will set the
timestamp in their hard interrupt routine.

Signed-off-by: Atif Niyaz <atifniyaz@google.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/evdev.c
drivers/input/input.c
include/linux/input.h