logger: fix RPi4 timestamp issue 76/269576/1 accepted/tizen/unified/20220120.154525 submit/tizen/20220118.160313
authorMateusz Majewski <m.majewski2@samsung.com>
Tue, 18 Jan 2022 10:45:59 +0000 (11:45 +0100)
committerMateusz Majewski <m.majewski2@samsung.com>
Tue, 18 Jan 2022 10:46:18 +0000 (11:46 +0100)
Change-Id: Iaceffde5c5fb566a1481c2c8b48776e60057d811
Signed-off-by: Mateusz Majewski <m.majewski2@samsung.com>
kernel/logger.c

index a3fc5ed..c4216f7 100644 (file)
@@ -812,7 +812,7 @@ static ssize_t logger_write_iter(struct kiocb *iocb, struct iov_iter *from)
        count = min_t(size_t, iov_iter_count(from), LOGGER_ENTRY_MAX_PAYLOAD);
 
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,19,0))
-       ktime_get_ts64(&now);
+       ktime_get_real_ts64(&now);
 #else
        now = current_kernel_time();
 #endif