qcacld-3.0: completion_freeq_lock needs initialization

Initialization of completion_freeq_lock was removed as part of
removing the completion thread.  The lock still protects the
variable num_sends_allowed for copy engines used for sending.

Change-Id: Ia52d2c1b839d2ccfedbd175f1b8f60f953d08203
CRs-Fixed: 951563
This commit is contained in:
Houston Hoffman 2015-11-30 16:48:35 -08:00 • committed by Akash Patel
commit 6710de643f

View file

@ -844,7 +844,11 @@ int hif_completion_thread_startup(struct HIF_CE_state *hif_state)
hif_pci_ce_recv_data, pipe_info,
attr.flags & CE_ATTR_DISABLE_INTR);
}
if (attr.src_nentries)
cdf_spinlock_init(&pipe_info->completion_freeq_lock);
}
A_TARGET_ACCESS_UNLIKELY(scn);
return 0;
}