[lkml]   [2017]   [Dec]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH v4 1/4] uinput: Use monotonic times for uinput timestamps.
On Thu, Dec 7, 2017 at 7:13 PM, Deepa Dinamani <> wrote:
> struct timeval which is part of struct input_event to
> maintain the event times is not y2038 safe.
> Real time timestamps are also not ideal for input_event
> as this time can go backwards as noted in the patch
> a80b83b7b8 by John Stultz.
> The patch switches the timestamps to use monotonic time
> from realtime time. This is assuming no one is using
> absolute times from these timestamps.
> The structure to maintain input events will be changed
> in a different patch.
> Signed-off-by: Deepa Dinamani <>

Reviewed-by: Arnd Bergmann <>

 \ /
  Last update: 2017-12-07 23:24    [W:0.093 / U:4.176 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site