Re: [PATCH v4 1/4] uinput: Use monotonic times for uinput timestamps.

From: Arnd Bergmann
Date: Thu Dec 07 2017 - 17:24:37 EST


On Thu, Dec 7, 2017 at 7:13 PM, Deepa Dinamani <deepa.kernel@xxxxxxxxx> 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 <deepa.kernel@xxxxxxxxx>

Reviewed-by: Arnd Bergmann <arnd@xxxxxxxx>