Input: Use monotonic time for event time stamps.
authorArve Hjønnevåg <arve@android.com>
Fri, 17 Oct 2008 22:28:08 +0000 (15:28 -0700)
committerVarun Wadekar <vwadekar@nvidia.com>
Mon, 23 Apr 2012 06:05:22 +0000 (23:05 -0700)
commita858bff66b7900332e07213eaf969088a8002bfa
treed3932849eb7d1ba8f5f45e81bcc211320c7b0529
parent0fbe99f35b72318edf753c13011ff9f7f27998c0
Input: Use monotonic time for event time stamps.

Since wall time can jump backwards, it cannot be used to determine if one
event occured before another or for how long a key was pressed.

Signed-off-by: Arve Hjønnevåg <arve@android.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Change-Id: Id9e75ad5ef0e56ec6bc8b1f1594a71412317f93c
Reviewed-on: http://git-master/r/97840
Tested-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Tested-by: Prashant Gaikwad <pgaikwad@nvidia.com>
drivers/input/evdev.c