From 28cecde000ecabb1129cf54adbd963b97b11d012 Mon Sep 17 00:00:00 2001 From: Shashikala Prabhu Date: Thu, 27 Aug 2020 11:46:29 +0530 Subject: [PATCH] qcacmn: Use ktime_get_ts64 for logging time stamp Use ktime_get_ts64 instead of ktime_get_real_ts64 to display logging time stamp. ktime_get_real_ts64 displays the time of day in a timespec64. Whereas, ktime_get_ts64 gets the monotonic clock in timespec64 format. Change-Id: Id6646a2d60c5d049b0d777f58c9ac332ffb52437 CRs-Fixed: 2764048 --- qdf/linux/src/i_qdf_time.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qdf/linux/src/i_qdf_time.h b/qdf/linux/src/i_qdf_time.h index 69fd0c695e95..4ae4bf7713da 100644 --- a/qdf/linux/src/i_qdf_time.h +++ b/qdf/linux/src/i_qdf_time.h @@ -300,7 +300,7 @@ static inline uint64_t __qdf_get_log_timestamp(void) { struct timespec64 ts; - ktime_get_real_ts64(&ts); + ktime_get_ts64(&ts); return ((uint64_t)ts.tv_sec * 1000000) + (ts.tv_nsec / 1000); }