Thread (2 messages) 2 messages, 2 authors, 2015-06-01

Re: [PATCH v4] isdn: Use ktime_t instead of 'struct timeval'

From: David Miller <davem@davemloft.net>
Date: 2015-06-01 04:38:01

From: Tina Ruchandani <redacted>
Date: Sun, 31 May 2015 12:49:37 +0530
'struct timeval' uses 32-bit representation for seconds which will
overflow in year 2038 and beyond. mISDN/clock.c needs to compute and
store elapsed time in intervals of 125 microseconds. This patch replaces
the usage of 'struct timeval' with 64-bit ktime_t which is y2038 safe.
The patch also replaces do_gettimeofday (wall-clock time) with ktime_get
(monotonic time) since we only care about elapsed time here.

Signed-off-by: Tina Ruchandani <redacted>
Suggested-by: Arnd Bergmnann <arnd@arndb.de>
This doesn't apply cleanly to net-next.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help