From 2893aff03f059cce4827f43fda5ddc238a0bb23b Mon Sep 17 00:00:00 2001 From: Houston Hoffman Date: Thu, 3 Sep 2015 15:45:12 -0700 Subject: [PATCH] qcacld-3.0: Remove target_lock from watermarks_set functions If watermarks are going to be used, the should be set as part of a single threaded initialization sequence. Change-Id: I3e1e9cd0f55f46d9f46718c139963931311fe8ae CRs-Fixed: 941355 --- core/hif/src/ce/ce_service.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/core/hif/src/ce/ce_service.c b/core/hif/src/ce/ce_service.c index 1636c14930eb..d5d3dc3bf08f 100644 --- a/core/hif/src/ce/ce_service.c +++ b/core/hif/src/ce/ce_service.c @@ -607,10 +607,8 @@ ce_send_watermarks_set(struct CE_handle *copyeng, uint32_t ctrl_addr = CE_state->ctrl_addr; struct ol_softc *scn = CE_state->scn; - cdf_spin_lock(&scn->target_lock); CE_SRC_RING_LOWMARK_SET(scn, ctrl_addr, low_alert_nentries); CE_SRC_RING_HIGHMARK_SET(scn, ctrl_addr, high_alert_nentries); - cdf_spin_unlock(&scn->target_lock); } void @@ -622,12 +620,10 @@ ce_recv_watermarks_set(struct CE_handle *copyeng, uint32_t ctrl_addr = CE_state->ctrl_addr; struct ol_softc *scn = CE_state->scn; - cdf_spin_lock(&scn->target_lock); CE_DEST_RING_LOWMARK_SET(scn, ctrl_addr, low_alert_nentries); CE_DEST_RING_HIGHMARK_SET(scn, ctrl_addr, high_alert_nentries); - cdf_spin_unlock(&scn->target_lock); } unsigned int ce_send_entries_avail(struct CE_handle *copyeng)