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
This commit is contained in:
@@ -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());
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user