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
This commit is contained in:
Jeff Johnson 2016-10-27 17:21:32 -07:00 • committed by Prakash Dhavali
commit 292764f01a

View file

@ -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)