diff options
author | Tina Ruchandani <ruchandani.tina@gmail.com> | 2016-03-19 19:21:14 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-03-20 21:47:13 +0100 |
commit | ebf918cf9922748b9d4d9bf6a2620530cdc5a1d0 (patch) | |
tree | 815830cb374a7c8d945af83d1ed00ff89930a269 /net/core | |
parent | Merge branch 'tunnel-fixes' (diff) | |
download | linux-ebf918cf9922748b9d4d9bf6a2620530cdc5a1d0.tar.xz linux-ebf918cf9922748b9d4d9bf6a2620530cdc5a1d0.zip |
isdn: Use ktime_t instead of 'struct timeval'
'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 <ruchandani.tina@gmail.com>
Suggested-by: Arnd Bergmnann <arnd@arndb.de>
Suggested-by: David Miller <davem@davemloft.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
0 files changed, 0 insertions, 0 deletions