OSDN Git Service

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)
commit3b51c44bd6936e86a7180abd9aebc4387a479253
tree307baa973004837a30e57d0a3dccc54f89e06604
parentc2433827c1a149b72f1413f0151155f6fa4b3214
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