diff options
author | Arnd Bergmann <arnd@arndb.de> | 2018-07-11 14:29:53 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-07-12 14:55:39 -0700 |
commit | 51bef926be1e3154996ce400d862aebb98ccbed6 (patch) | |
tree | 0d15907f606f5410b1491c6cefbdf05e830c1057 /drivers/mfd/asic3.c | |
parent | 44c58899b09d6cbf113f50465215fc66258461df (diff) |
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 'drivers/mfd/asic3.c')
0 files changed, 0 insertions, 0 deletions