Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 44c58899 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by David S. Miller
Browse files

liquidio: use ktime_get_real_ts64() instead of getnstimeofday64()



The two do the same thing, but we want to have a consistent
naming in the kernel.

Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Acked-by: default avatarFelix Manlunas <felix.manlunas@cavium.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ccb06fba
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
+1 −1
Original line number Diff line number Diff line
@@ -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);