summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGovind Singh <govinds@qti.qualcomm.com>2016-08-08 15:22:34 +0530
committerAnjaneedevi Kapparapu <akappa@codeaurora.org>2016-08-11 17:29:47 +0530
commit8ffe90966fece5fa4db021115854d9c2f10343a4 (patch)
tree10d736fa3f8d5f6dca8c382318603a4fc609aa75
parentd0b4ed70f5a44bf6af713cce0ee35d0c6e656629 (diff)
qcacld-2.0: Remove unnecessary locking during WMI detach
HOST driver unload sequence does following 1) Kill WLAN tasklet 2) Disable CE interrupts 3) Flush WMI RX work Hence its unnecessary to acquire eventq_lock as no one will be using the shared resource during wmi detach. Change-Id: Ib21cf62adb9a37cf3cbd935dadaf576d8098c99a CRs-Fixed: 1052815
-rw-r--r--CORE/SERVICES/WMI/wmi_unified.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/CORE/SERVICES/WMI/wmi_unified.c b/CORE/SERVICES/WMI/wmi_unified.c
index 821fe046b66c..174a7efb5251 100644
--- a/CORE/SERVICES/WMI/wmi_unified.c
+++ b/CORE/SERVICES/WMI/wmi_unified.c
@@ -1247,13 +1247,11 @@ wmi_unified_detach(struct wmi_unified* wmi_handle)
wmi_buf_t buf;
vos_flush_work(&wmi_handle->rx_event_work);
- adf_os_spin_lock_bh(&wmi_handle->eventq_lock);
buf = adf_nbuf_queue_remove(&wmi_handle->event_queue);
while (buf) {
adf_nbuf_free(buf);
buf = adf_nbuf_queue_remove(&wmi_handle->event_queue);
}
- adf_os_spin_unlock_bh(&wmi_handle->eventq_lock);
OS_FREE(wmi_handle);
}