Przeglądaj źródła

qcacld-3.0: Disable TDLS RX pkt statistics in bus vote high

TDLS pkts statistics API cost 10% CPU cycle of whole RX
thread. The code logic show it may not be caclulated when
bus vote larger than medium. But checking routine always
return false of which may lead more power cost. Fix bus
vote checking routine to return correct vote status in
stead of always false value.

Change-Id: I003c9943ef3a4bbc83db6caaf893408e40e4962b
CRs-Fixed: 2842119
Yu Tian 4 lat temu
rodzic
commit
f2e15679fe
2 zmienionych plików z 0 dodań i 9 usunięć
  1. 0 7
      core/hdd/inc/wlan_hdd_tx_rx.h
  2. 0 2
      core/hdd/src/wlan_hdd_tx_rx.c

+ 0 - 7
core/hdd/inc/wlan_hdd_tx_rx.h

@@ -430,14 +430,7 @@ void hdd_reset_tcp_delack(struct hdd_context *hdd_ctx);
  * Return: None
  */
 void hdd_reset_tcp_adv_win_scale(struct hdd_context *hdd_ctx);
-#ifdef RX_PERFORMANCE
 bool hdd_is_current_high_throughput(struct hdd_context *hdd_ctx);
-#else
-static inline bool hdd_is_current_high_throughput(struct hdd_context *hdd_ctx)
-{
-	return false;
-}
-#endif
 #define HDD_MSM_CFG(msm_cfg)	msm_cfg
 #else
 static inline void hdd_reset_tcp_delack(struct hdd_context *hdd_ctx) {}

+ 0 - 2
core/hdd/src/wlan_hdd_tx_rx.c

@@ -3409,7 +3409,6 @@ void hdd_reset_tcp_adv_win_scale(struct hdd_context *hdd_ctx)
  *
  * Return: True if vote level is high
  */
-#ifdef RX_PERFORMANCE
 bool hdd_is_current_high_throughput(struct hdd_context *hdd_ctx)
 {
 	if (hdd_ctx->cur_vote_level < PLD_BUS_WIDTH_MEDIUM)
@@ -3418,7 +3417,6 @@ bool hdd_is_current_high_throughput(struct hdd_context *hdd_ctx)
 		return true;
 }
 #endif
-#endif
 
 #ifdef QCA_LL_LEGACY_TX_FLOW_CONTROL
 /**