qcacmn: msdu time lag update for tx completion

msdu time from hwenqueue to tx completion as part of
msdu stats.

Change-Id: I71ba6f1dec0505e4fa09b5fb123f21912b08b9c5
CRs-Fixed: 2286774
This commit is contained in:
Ruchi, Agrawal
2018-06-20 19:31:03 +05:30
committed by nshrivas
parent 234753cb0f
commit 2cbca3b050
7 changed files with 113 additions and 2 deletions

View File

@@ -108,6 +108,20 @@ typedef __qdf_wait_queue_head_t qdf_wait_queue_head_t;
(_a)[4] == 0xff && \
(_a)[5] == 0xff)
#define QDF_DECLARE_EWMA(name, factor, weight) \
_QDF_DECLARE_EWMA(name, factor, weight)
#define qdf_ewma_tx_lag _qdf_ewma_tx_lag
#define qdf_ewma_tx_lag_init(tx_lag) \
_qdf_ewma_tx_lag_init(tx_lag)
#define qdf_ewma_tx_lag_add(tx_lag, value) \
_qdf_ewma_tx_lag_add(tx_lag, value)
#define qdf_ewma_tx_lag_read(tx_lag) \
_qdf_ewma_tx_lag_read(tx_lag)
/**
* qdf_status_to_os_return - returns the status to OS.
* @status: enum QDF_STATUS

View File

@@ -29,6 +29,7 @@
#include <linux/types.h>
#include <linux/mm.h>
#include <linux/errno.h>
#include <linux/average.h>
#include <linux/random.h>
#include <linux/io.h>
@@ -280,6 +281,10 @@ static inline bool __qdf_is_macaddr_equal(struct qdf_mac_addr *mac_addr1,
#define __qdf_min(_a, _b) min(_a, _b)
#define __qdf_max(_a, _b) max(_a, _b)
#define _QDF_DECLARE_EWMA(name, _factor, _weight) \
DECLARE_EWMA(name, _factor, _weight)
#define _qdf_ewma_tx_lag struct ewma_tx_lag
#define __qdf_ffz(mask) (~(mask) == 0 ? -1 : ffz(mask))
@@ -350,6 +355,15 @@ static inline bool __qdf_is_macaddr_equal(struct qdf_mac_addr *mac_addr1,
#define __qdf_roundup(x, y) roundup(x, y)
#define _qdf_ewma_tx_lag_init(tx_lag) \
ewma_tx_lag_init(tx_lag)
#define _qdf_ewma_tx_lag_add(tx_lag, value) \
ewma_tx_lag_add(tx_lag, value)
#define _qdf_ewma_tx_lag_read(tx_lag) \
ewma_tx_lag_read(tx_lag)
#ifdef QCA_CONFIG_SMP
/**
* __qdf_get_cpu() - get cpu_index