From: Jens Axboe Date: Wed, 23 Dec 2015 15:42:59 +0000 (-0700) Subject: sx8: use real time for the command seconds X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=39fc8830eb96a559be8554b8df1e0c31f375feaf;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git sx8: use real time for the command seconds Commit 8182503df1ba used monotonic time, but if the adapter is using the seconds for logging entries, then we'll get duplicate entries if the system is rebooted. Use real time instead. Reported-by: Arnd Bergmann Fixes: 8182503df1ba ("block: sx8.c: Replace timeval with ktime_t") Signed-off-by: Jens Axboe --- diff --git a/drivers/block/sx8.c b/drivers/block/sx8.c index baadb777e035..ba4bfe933276 100644 --- a/drivers/block/sx8.c +++ b/drivers/block/sx8.c @@ -673,7 +673,7 @@ static unsigned int carm_fill_sync_time(struct carm_host *host, { struct carm_msg_sync_time *st = mem; - time64_t tv = ktime_get_seconds(); + time64_t tv = ktime_get_real_seconds(); memset(st, 0, sizeof(*st)); st->type = CARM_MSG_MISC;