summaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2018-07-11 14:29:53 +0200
committerDavid S. Miller <davem@davemloft.net>2018-07-12 23:55:39 +0200
commit51bef926be1e3154996ce400d862aebb98ccbed6 (patch)
tree0d15907f606f5410b1491c6cefbdf05e830c1057 /net/ipv4
parentliquidio: use ktime_get_real_ts64() instead of getnstimeofday64() (diff)
downloadlinux-51bef926be1e3154996ce400d862aebb98ccbed6.tar.xz
linux-51bef926be1e3154996ce400d862aebb98ccbed6.zip
nfp: avoid using getnstimeofday64()
getnstimeofday64 is deprecated in favor of the ktime_get() family of functions. The direct replacement would be ktime_get_real_ts64(), but I'm picking the basic ktime_get() instead: - using a ktime_t simplifies the code compared to timespec64 - using monotonic time instead of real time avoids issues caused by a concurrent settimeofday() or during a leap second adjustment. Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
0 files changed, 0 insertions, 0 deletions