From 1fca7b05077a054fe49fe4af7ff97c92f0a84526 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Sun, 16 Dec 2018 11:40:36 -0800 Subject: [PATCH] qcacld-3.0: Remove cds_get_monotonic_boottime() Utility function cds_get_monotonic_boottime() is unused, so remove it. Change-Id: I85ab8be34b2fde61f710384acb2b727456adf760 CRs-Fixed: 2370774 --- core/cds/inc/cds_api.h | 2 -- core/cds/src/cds_api.c | 14 -------------- 2 files changed, 16 deletions(-) diff --git a/core/cds/inc/cds_api.h b/core/cds/inc/cds_api.h index 9f689e96be31..74bf5b0a2561 100644 --- a/core/cds/inc/cds_api.h +++ b/core/cds/inc/cds_api.h @@ -356,8 +356,6 @@ bool cds_is_packet_log_enabled(void) bool cds_is_packet_log_enabled(void); #endif -uint64_t cds_get_monotonic_boottime(void); - /** * cds_get_recovery_reason() - get self recovery reason * @reason: cds hang reason diff --git a/core/cds/src/cds_api.c b/core/cds/src/cds_api.c index f16dcaa6bf32..a4baf8deab90 100644 --- a/core/cds/src/cds_api.c +++ b/core/cds/src/cds_api.c @@ -1902,20 +1902,6 @@ void cds_reset_recovery_reason(void) gp_cds_context->recovery_reason = QDF_REASON_UNSPECIFIED; } -/** - * cds_get_monotonic_boottime() - Get kernel boot time. - * - * Return: Time in microseconds - */ - -uint64_t cds_get_monotonic_boottime(void) -{ - struct timespec ts; - - get_monotonic_boottime(&ts); - return ((uint64_t) ts.tv_sec * 1000000) + (ts.tv_nsec / 1000); -} - /** * cds_set_wakelock_logging() - Logging of wakelock enabled/disabled * @value: Boolean value