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

- From: Arnd Bergmann \<arnd@arndb.de\>
- Date: 2017-12-07 22:24:34 
- List: linux-input
- Page: https://ratatoskr.run/linux-input/2017/12/5152884
- Thread: https://ratatoskr.run/linux-input/2017/12/5152688/t.md

```text
On Thu, Dec 7, 2017 at 7:13 PM, Deepa Dinamani [ref] 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 <redacted>

Reviewed-by: Arnd Bergmann <arnd@arndb.de>
```
