diff options
| author | Houston Hoffman <hhoffman@codeaurora.org> | 2016-12-12 12:22:52 -0800 |
|---|---|---|
| committer | qcabuildsw <qcabuildsw@localhost> | 2016-12-24 16:00:17 -0800 |
| commit | 90f6e4b82348a863d9cbfb18c9938d3efc657383 (patch) | |
| tree | 2dbe1c7db44efb0ee4677a6c63e0ae0a3dc5dd53 | |
| parent | 332987ce33ee28cc165d82c57213c4f9ff2b016b (diff) | |
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
| -rw-r--r-- | core/dp/htt/htt_internal.h | 1 | ||||
| -rw-r--r-- | core/hdd/src/wlan_hdd_main.c | 1 | ||||
| -rw-r--r-- | core/mac/src/pe/lim/lim_api.c | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/core/dp/htt/htt_internal.h b/core/dp/htt/htt_internal.h index 931c9087bc73..97ea67faac7d 100644 --- a/core/dp/htt/htt_internal.h +++ b/core/dp/htt/htt_internal.h @@ -763,6 +763,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 diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 693ceeb399fe..cb45e359f6c6 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -4719,6 +4719,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); } /** diff --git a/core/mac/src/pe/lim/lim_api.c b/core/mac/src/pe/lim/lim_api.c index cee6d5d7a214..269673ed38df 100644 --- a/core/mac/src/pe/lim/lim_api.c +++ b/core/mac/src/pe/lim/lim_api.c @@ -625,6 +625,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); |
