Procházet zdrojové kódy

qcacld-3.0: Add lock destruction for several locks

rx_buff_list_lock, hdd_roc_req_q_lock, lim_frame_register_lock.
Adding lock stats print upon spinlock & mutex destroy.  Without
the destroy api invoked the lock stats are not printed.

Change-Id: I26cad72e3f55b9ff5f1383d617859ff2b30d74f7
CRs-Fixed: 1100552
Houston Hoffman před 8 roky
rodič
revize
2eac7c4033

+ 2 - 1
core/dp/htt/htt_internal.h

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011, 2014-2016 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2011, 2014-2017 The Linux Foundation. All rights reserved.
  *
  * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
  *
@@ -704,6 +704,7 @@ void htt_rx_dbg_rxbuf_deinit(struct htt_pdev_t *pdev)
 {
 	if (pdev->rx_buff_list)
 		qdf_mem_free(pdev->rx_buff_list);
+	qdf_spinlock_destroy(&(pdev->rx_buff_list_lock));
 }
 #else
 static inline

+ 1 - 0
core/hdd/src/wlan_hdd_main.c

@@ -4762,6 +4762,7 @@ static void hdd_roc_context_destroy(hdd_context_t *hdd_ctx)
 {
 	flush_delayed_work(&hdd_ctx->roc_req_work);
 	qdf_list_destroy(&hdd_ctx->hdd_roc_req_q);
+	qdf_spinlock_destroy(&hdd_ctx->hdd_roc_req_q_lock);
 }
 
 /**

+ 1 - 0
core/mac/src/pe/lim/lim_api.c

@@ -630,6 +630,7 @@ void lim_cleanup(tpAniSirGlobal pMac)
 		}
 		qdf_mutex_release(&pMac->lim.lim_frame_register_lock);
 		qdf_list_destroy(&pMac->lim.gLimMgmtFrameRegistratinQueue);
+		qdf_mutex_destroy(&pMac->lim.lim_frame_register_lock);
 	}
 
 	lim_cleanup_mlm(pMac);