nfp: avoid using getnstimeofday64()
authorArnd Bergmann <arnd@arndb.de>
Wed, 11 Jul 2018 12:29:53 +0000 (14:29 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Jul 2018 21:55:39 +0000 (14:55 -0700)
commit51bef926be1e3154996ce400d862aebb98ccbed6
tree0d15907f606f5410b1491c6cefbdf05e830c1057
parent44c58899b09d6cbf113f50465215fc66258461df
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>
drivers/net/ethernet/netronome/nfp/flower/main.h
drivers/net/ethernet/netronome/nfp/flower/metadata.c