RE: [PATCH] staging: comedi: Use monotonic clock

2015-08-12 Thread Hartley Sweeten
On Tuesday, August 11, 2015 7:32 AM, Abhilash Jindal wrote: > Subject: [PATCH] staging: comedi: Use monotonic clock Nitpick... The subject above should have the driver name in it. " staging: comedi: serial2002: Use monotonic clock" The current subject makes this commit appear to

Re: [PATCH] staging: comedi: Use monotonic clock

2015-08-11 Thread Ian Abbott
On 11/08/15 15:31, Abhilash Jindal wrote: Wall time obtained from do_gettimeofday is susceptible to sudden jumps due to user setting the time or due to NTP. Monotonic time is constantly increasing time better suited for comparing two timestamps. Signed-off-by: Abhilash Jindal --- drivers/sta

[PATCH] staging: comedi: Use monotonic clock

2015-08-11 Thread Abhilash Jindal
Wall time obtained from do_gettimeofday is susceptible to sudden jumps due to user setting the time or due to NTP. Monotonic time is constantly increasing time better suited for comparing two timestamps. Signed-off-by: Abhilash Jindal --- drivers/staging/comedi/drivers/serial2002.c | 10 +