liquidio: use ktime_get_real_ts64() instead of getnstimeofday64()
authorArnd Bergmann <arnd@arndb.de>
Wed, 11 Jul 2018 12:29:52 +0000 (14:29 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Jul 2018 21:55:39 +0000 (14:55 -0700)
The two do the same thing, but we want to have a consistent
naming in the kernel.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Felix Manlunas <felix.manlunas@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/liquidio/lio_main.c
drivers/net/ethernet/cavium/liquidio/octeon_console.c

index ebda6efc3290782efb1e4c356a32dfbc7b5409bc..a60d5afeac28e5491ebc7131b0f1ca908e3ef8e8 100644 (file)
@@ -684,7 +684,7 @@ static void lio_sync_octeon_time(struct work_struct *work)
        lt = (struct lio_time *)sc->virtdptr;
 
        /* Get time of the day */
-       getnstimeofday64(&ts);
+       ktime_get_real_ts64(&ts);
        lt->sec = ts.tv_sec;
        lt->nsec = ts.tv_nsec;
        octeon_swap_8B_data((u64 *)lt, (sizeof(struct lio_time)) / 8);
index 7f97ae48efed74a306ec4ec0851761435ae4344d..0cc2338d8d2a81216d7a91e0d48ad704b7921fbd 100644 (file)
@@ -902,7 +902,7 @@ int octeon_download_firmware(struct octeon_device *oct, const u8 *data,
         *
         * Octeon always uses UTC time. so timezone information is not sent.
         */
-       getnstimeofday64(&ts);
+       ktime_get_real_ts64(&ts);
        ret = snprintf(boottime, MAX_BOOTTIME_SIZE,
                       " time_sec=%lld time_nsec=%ld",
                       (s64)ts.tv_sec, ts.tv_nsec);