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
This commit is contained in:
Houston Hoffman 2015-09-03 15:45:12 -07:00 • committed by Satish Singh
commit 2893aff03f

View file

@ -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)