qcacmn: Change the data type of average/roundup tx rate

The datatype of average and round up tx rate was uint32_t which truncates
the upper byte of the average and round up tx rate value.

changing the datatype of average and round up tx rate from uint32_t to
uint64_t.

Change-Id: I3809ba7cfc73ec0b4609981e70d57112ac958f33
CRs-Fixed: 2409751
This commit is contained in:
Shashikala Prabhu
2019-04-05 14:25:09 +05:30
zatwierdzone przez nshrivas
rodzic cb4f428edc
commit f7786d3822
3 zmienionych plików z 5 dodań i 5 usunięć

Wyświetl plik

@@ -65,14 +65,14 @@ enum CMN_BW_TYPES {
#define DUMMY_MARKER 0
#define DP_ATH_RATE_IN(c) (DP_ATH_EP_MUL((c), DP_ATH_RATE_EP_MULTIPLIER))
static inline int dp_ath_rate_lpf(int _d, int _e)
static inline int dp_ath_rate_lpf(uint64_t _d, int _e)
{
_e = DP_ATH_RATE_IN((_e));
return (((_d) != DUMMY_MARKER) ? ((((_d) << 3) + (_e) - (_d)) >> 3) :
(_e));
}
static inline int dp_ath_rate_out(int _i)
static inline int dp_ath_rate_out(uint64_t _i)
{
int _mul = DP_ATH_RATE_EP_MULTIPLIER;