From 7c2431dc9527792e8fc72a01f4856b55717a83fc Mon Sep 17 00:00:00 2001 From: Rajeev Kumar Date: Tue, 19 Mar 2019 12:31:53 -0700 Subject: [PATCH] qcacmn: Remove adrastea compile time flag from logging API Time stamp logging API needs to use msm timer tick on all MSM platforms hence remove the adrastea compile time flag from qdf time stamp get api. Change-Id: I9628646091a818acbca83ce75186308bdfd9453e CRs-Fixed: 2419279 --- qdf/linux/src/i_qdf_time.h | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/qdf/linux/src/i_qdf_time.h b/qdf/linux/src/i_qdf_time.h index bb085d634265..6c1133ee6d63 100644 --- a/qdf/linux/src/i_qdf_time.h +++ b/qdf/linux/src/i_qdf_time.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014-2018 The Linux Foundation. All rights reserved. + * Copyright (c) 2014-2019 The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -259,10 +259,10 @@ static inline uint64_t __qdf_get_monotonic_boottime(void) return ((uint64_t) ts.tv_sec * 1000000) + (ts.tv_nsec / 1000); } -#if defined (QCA_WIFI_3_0_ADRASTEA) && defined (MSM_PLATFORM) +#if defined (MSM_PLATFORM) /** - * __qdf_get_log_timestamp() - get QTIMER ticks + * __qdf_get_log_timestamp() - get msm timer ticks * * Returns QTIMER(19.2 MHz) clock ticks. To convert it into seconds * divide it by 19200. @@ -284,13 +284,8 @@ static inline uint64_t __qdf_get_log_timestamp(void) /** * __qdf_get_log_timestamp - get time stamp for logging - * For adrastea this API returns QTIMER tick which is needed to synchronize - * host and fw log timestamps - * For ROME and other discrete solution this API returns system boot time stamp * - * Return: - * QTIMER ticks(19.2MHz) for adrastea - * System tick for rome and other future discrete solutions + * Return: system tick for non MSM platfroms */ static inline uint64_t __qdf_get_log_timestamp(void) { @@ -300,7 +295,7 @@ static inline uint64_t __qdf_get_log_timestamp(void) return ((uint64_t) ts.tv_sec * 1000000) + (ts.tv_nsec / 1000); } -#endif /* QCA_WIFI_3_0_ADRASTEA */ +#endif /** * __qdf_get_bootbased_boottime_ns() - Get the bootbased time in nanoseconds