mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
qcacmn: Remove ce_debug_cmplsn_context_srng
static globabl variables are not thread safe. Change-Id: Ib315051d6a1da99740b501131cae449f8440e83c CRs-Fixed: 2000140
This commit is contained in:
parent
540222c531
commit
3274fbc178
1 changed files with 4 additions and 11 deletions
|
|
@ -327,10 +327,6 @@ ce_send_entries_done_nolock_srng(struct hif_softc *scn,
|
|||
return count;
|
||||
}
|
||||
|
||||
/* Debug support */
|
||||
void *ce_debug_cmplrn_context_srng; /* completed recv next context */
|
||||
void *ce_debug_cmplsn_context_srng; /* completed send next context */
|
||||
|
||||
/*
|
||||
* Guts of ce_completed_recv_next.
|
||||
* The caller takes responsibility for any necessary locking.
|
||||
|
|
@ -396,11 +392,9 @@ ce_completed_recv_next_nolock_srng(struct CE_state *CE_state,
|
|||
* one-to-one mapping with status ring.
|
||||
* Get the per trasnfer context from dest_ring.
|
||||
*/
|
||||
ce_debug_cmplrn_context_srng =
|
||||
dest_ring->per_transfer_context[sw_index];
|
||||
|
||||
if (per_transfer_contextp)
|
||||
*per_transfer_contextp = ce_debug_cmplrn_context_srng;
|
||||
*per_transfer_contextp =
|
||||
dest_ring->per_transfer_context[sw_index];
|
||||
|
||||
dest_ring->per_transfer_context[sw_index] = 0; /* sanity */
|
||||
|
||||
|
|
@ -468,10 +462,9 @@ ce_completed_send_next_nolock_srng(struct CE_state *CE_state,
|
|||
*per_CE_contextp = CE_state->send_context;
|
||||
|
||||
/* sw_index is used more like read index */
|
||||
ce_debug_cmplsn_context_srng =
|
||||
src_ring->per_transfer_context[sw_index];
|
||||
if (per_transfer_contextp)
|
||||
*per_transfer_contextp = ce_debug_cmplsn_context_srng;
|
||||
*per_transfer_contextp =
|
||||
src_ring->per_transfer_context[sw_index];
|
||||
|
||||
src_ring->per_transfer_context[sw_index] = 0; /* sanity */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue