ソースを参照

qcacld-3.0: revert TDLS pkt statistics changes

TDLS pkts statistics API cost 10% CPU cycle of whole RX
thread. It's optimized in another change from TDLS team to
remove excessive lock/unlock. So original change is not needed.

Change-Id: Ica1dd6bf8a94a4bef6045b07228bd547aeda3a00
CRs-Fixed: 2930306
Yu Tian 4 年 前
コミット
3c98ddde4d
2 ファイル変更10 行追加1 行削除
  1. 8 1
      core/hdd/inc/wlan_hdd_tx_rx.h
  2. 2 0
      core/hdd/src/wlan_hdd_tx_rx.c

+ 8 - 1
core/hdd/inc/wlan_hdd_tx_rx.h

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013-2020 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2013-2021 The Linux Foundation. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
@@ -430,7 +430,14 @@ 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) {}

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

@@ -3416,6 +3416,7 @@ 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)
@@ -3424,6 +3425,7 @@ bool hdd_is_current_high_throughput(struct hdd_context *hdd_ctx)
 		return true;
 }
 #endif
+#endif
 
 #ifdef QCA_LL_LEGACY_TX_FLOW_CONTROL
 /**