Просмотр исходного кода

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
Mohit Khanna 6 лет назад
Родитель
Сommit
4079b4b464
2 измененных файлов с 0 добавлено и 3 удалено
  1. 0 2
      core/dp/txrx3.0/dp_rx_thread.c
  2. 0 1
      core/dp/txrx3.0/dp_rx_thread.h

+ 0 - 2
core/dp/txrx3.0/dp_rx_thread.c

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

+ 0 - 1
core/dp/txrx3.0/dp_rx_thread.h

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