lkml.org 
[lkml]   [2017]   [Dec]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH v3 4/4] input: serio: Replace timeval by timespec64
On Mon, Dec 4, 2017 at 5:44 AM, Arnd Bergmann <arnd@arndb.de> wrote:
> On Mon, Dec 4, 2017 at 1:55 AM, Deepa Dinamani <deepa.kernel@gmail.com> wrote:
>> struct timeval is not y2038 safe.
>> All references to timeval will be deleted from the
>> kernel to make it y2038 safe.
>> Replace its uses by y2038 safe struct timespec64.
>>
>> The timestamps changed here only keep track of delta
>> times. These timestamps are also internal to kernel.
>> Hence, monotonic times are sufficient here.
>> The unit of the delta times is also changed in certain
>> cases to nanoseconds rather than microseconds. This is
>> in line with timespec64 which keeps time in nanoseconds.
>>
>> Signed-off-by: Deepa Dinamani <deepa.kernel@gmail.com>
>> Reviewed-by: Arnd Bergmann <arnd@arndb.de>
>
> Hi Deepa,
>
> I forgot you also had these on your backlog. I submitted a different
> set of patches
> two weeks ago for the two HP drivers, originally by Pingbo Wen, based on a
> different approach.
>
> That version simplified the code in question a bit more by using jiffies,
> while your version is a little safer since it changes less. Both versions
> should be fine though, it's up to Dmitry which one he wants to pick up.

Dmitry, please let me know if you would like this version. If not, I
can drop the patch when I post an update.

-Deepa

\
 
 \ /
  Last update: 2017-12-04 21:38    [W:0.382 / U:0.352 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site