From 292764f01a7b8ff50407b46a31063d847ffbf3f4 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Thu, 27 Oct 2016 17:21:32 -0700 Subject: [PATCH] qcacld-3.0: Remove obsolete pktlog_check_threshold() "qcacld-3.0: Add infrastructure for pktstats based on linkedlist" removed the only caller to function pktlog_check_threshold(). Since this is now unused, remove it. Change-Id: I37a3d561de248829e6f993fc98d9628476fbe874 CRs-Fixed: 1085689 --- core/utils/pktlog/pktlog_internal.c | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/core/utils/pktlog/pktlog_internal.c b/core/utils/pktlog/pktlog_internal.c index 0e58acf4c802..63d6ab7ec838 100644 --- a/core/utils/pktlog/pktlog_internal.c +++ b/core/utils/pktlog/pktlog_internal.c @@ -56,8 +56,6 @@ #define TX_DESC_ID_HIGH_MASK 0xffff0000 #define TX_DESC_ID_HIGH_SHIFT 16 -#define PER_PACKET_STATS_THRESHOLD 4096 - void pktlog_getbuf_intsafe(struct ath_pktlog_arg *plarg) { struct ath_pktlog_buf *log_buf; @@ -148,31 +146,6 @@ void pktlog_getbuf_intsafe(struct ath_pktlog_arg *plarg) plarg->buf = log_ptr; } -/** - * pktlog_check_threshold() - This function checks threshold for triggering - * packet stats - * @pl_info: Packet log information pointer - * @log_size: Size of current packet log information - * - * This function internally triggers logging of per packet stats when the - * incoming data crosses threshold limit - * - * Return: None - * - */ -void pktlog_check_threshold(struct ath_pktlog_info *pl_info, - size_t log_size) -{ - PKTLOG_LOCK(pl_info); - pl_info->buf->bytes_written += log_size + sizeof(struct ath_pktlog_hdr); - - if (pl_info->buf->bytes_written >= PER_PACKET_STATS_THRESHOLD) { - wlan_logging_set_per_pkt_stats(); - pl_info->buf->bytes_written = 0; - } - PKTLOG_UNLOCK(pl_info); -} - char *pktlog_getbuf(struct ol_pktlog_dev_t *pl_dev, struct ath_pktlog_info *pl_info, size_t log_size, struct ath_pktlog_hdr *pl_hdr)