Sfoglia il codice sorgente

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 9 anni fa
parent
commit
6666df7fab
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  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;
 }