Эх сурвалжийг харах

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
Houston Hoffman 9 жил өмнө
parent
commit
3e551e46b9

+ 0 - 4
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)