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

2015-05-31 Thread Tina Ruchandani
This doesn't compile: Oops, I sent an older version of the patch with a typo. I've correct this in a v4. (NS_PER_SEC - NSEC_PER_SEC). Thanks for taking a look at this. Tina -- To unsubscribe from this list: send the line unsubscribe netdev in the body of a message to majord...@vger.kernel.org

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

2015-05-27 Thread David Miller
From: Tina Ruchandani ruchandani.t...@gmail.com Date: Wed, 27 May 2015 06:52:12 +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

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

2015-05-26 Thread Tina Ruchandani
'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