Explorar o código

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
Houston Hoffman %!s(int64=9) %!d(string=hai) anos
pai
achega
6666df7fab
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      core/hif/src/ce/ce_main.c

+ 4 - 0
core/hif/src/ce/ce_main.c

@@ -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;
 }