summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYue Ma <yuem@qca.qualcomm.com>2014-07-24 11:24:16 -0700
committerAkash Patel <c_akashp@qca.qualcomm.com>2014-07-28 19:45:28 -0700
commitc084765473bd2bb8e8f7109829ae7b2484087f30 (patch)
treedc8fedccab14f8454de33773c3da2a2614a874fe
parent9bcfc94d091b7277aaff7a7c0c1b0924165d3b43 (diff)
qca_cld: Use CNSS API to get kernel boot time
Use the CNSS API to get kernel boot time which excludes suspend time so that host driver can get the time which matches kernel print timestamp. Change-Id: I0b268cf284784edab9eb5c54e862ecd0a30aab18 CRs-fixed: 699698
-rw-r--r--CORE/SERVICES/COMMON/adf/adf_os_time.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/CORE/SERVICES/COMMON/adf/adf_os_time.h b/CORE/SERVICES/COMMON/adf/adf_os_time.h
index aa81ab4e45ca..a60e5bfcbeba 100644
--- a/CORE/SERVICES/COMMON/adf/adf_os_time.h
+++ b/CORE/SERVICES/COMMON/adf/adf_os_time.h
@@ -143,11 +143,7 @@ static inline a_uint64_t adf_get_boottime(void)
#ifdef CONFIG_CNSS
struct timespec ts;
-#ifdef WLAN_OPEN_SOURCE
- ktime_get_ts(&ts);
-#else
- cnss_get_monotonic_boottime(&ts);
-#endif /* WLAN_OPEN_SOURCE */
+ cnss_get_boottime(&ts);
return (((a_uint64_t)ts.tv_sec * 1000000) + (ts.tv_nsec / 1000));
#else