[PATCH] staging: fbtft: Use monotonic clock

2016-01-31 Thread Abhilash Jindal
Wall time obtained from getnstimeofday 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/fbtft/fbtft-core.c |4 ++-- 1 file

[PATCH] staging: lirc_parallel.c: Use monotonic clock

2016-01-31 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/media/lirc/lirc_parallel.c | 42

[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

[BUG] driver/staging/android/timed_gpio.c - very long gpio on if CPU suspends

2013-09-05 Thread abhilash jindal
timed_gpio.c uses hrtimer to switch off the gpio. However, hrtimer does not get fired after the CPU suspends. Hence, if the CPU suspends before the timer gets fired, the gpio stays on until the next time when CPU wakes up causing unnecessary battery drain (which can be as long as 15 minutes). IMH