diff options
author | Arnd Bergmann <arnd@arndb.de> | 2018-07-11 15:29:53 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-07-13 00:55:39 +0300 |
commit | 51bef926be1e3154996ce400d862aebb98ccbed6 (patch) | |
tree | 0d15907f606f5410b1491c6cefbdf05e830c1057 /net/ipv4/ip_input.c | |
parent | 44c58899b09d6cbf113f50465215fc66258461df (diff) | |
download | linux-51bef926be1e3154996ce400d862aebb98ccbed6.tar.xz |
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/ip_input.c')
0 files changed, 0 insertions, 0 deletions