qcacld-3.0: Remove un-initialized lock from DP thread

DP RX thread is using an un-initialized lock during suspend/resume
routine. This lock is not needed as the code is executed only by a
single execution context.

Remove usage of un-initialized lock.

CRs-Fixed: 2351010
Change-Id: I656562fe3ca73a5044163008a44ffae416a6a7fa
Este commit está contenido en:
Mohit Khanna
2018-11-15 16:05:53 -08:00
cometido por nshrivas
padre 178f35f013
commit 4079b4b464
Se han modificado 2 ficheros con 0 adiciones y 3 borrados

Ver fichero

@@ -328,10 +328,8 @@ static int dp_rx_thread_sub_loop(struct dp_rx_thread *rx_thread, bool *shutdown)
dp_debug("received suspend ind (%s) id %d pid %d",
qdf_get_current_comm(), rx_thread->id,
qdf_get_current_pid());
qdf_spin_lock(&rx_thread->lock);
qdf_event_reset(&rx_thread->resume_event);
qdf_event_set(&rx_thread->suspend_event);
qdf_spin_unlock(&rx_thread->lock);
dp_debug("waiting for resume (%s) id %d pid %d",
qdf_get_current_comm(), rx_thread->id,
qdf_get_current_pid());

Ver fichero

@@ -84,7 +84,6 @@ struct dp_rx_thread_stats {
*/
struct dp_rx_thread {
qdf_thread_t *task;
qdf_spinlock_t lock;
qdf_event_t start_event;
qdf_event_t suspend_event;
qdf_event_t resume_event;