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

2015-11-01 Thread Tina Ruchandani
> > Therefore please adjust the variable name appropriately, thanks. David, Thanks for the feedback, I will send out a v3. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/major

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

2015-11-01 Thread David Miller
From: Tina Ruchandani Date: Thu, 29 Oct 2015 21:08:16 -0700 > @@ -45,7 +46,7 @@ static u_int *debug; > static LIST_HEAD(iclock_list); > static DEFINE_RWLOCK(iclock_lock); > static u16 iclock_count; /* counter of last clock */ > -static struct timeval iclock_tv; /* time stamp of

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

2015-10-29 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 repl