Commit 4ba2a8b4d80a864a02d5d6898ae54f9d45afbb33

Authored by Pranith Kumar
Committed by Herbert Xu
1 parent 47ca5be9eb

crypto: caam - Remove unnecessary smp_read_barrier_depends()

Recently lockless_dereference() was added which can be used in place of
hard-coding smp_read_barrier_depends(). The following PATCH makes the change.

Signed-off-by: Pranith Kumar <bobby.prani@gmail.com>
Reviewed-by: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

Showing 1 changed file with 0 additions and 3 deletions Side-by-side Diff

drivers/crypto/caam/jr.c
... ... @@ -181,8 +181,6 @@
181 181 for (i = 0; CIRC_CNT(head, tail + i, JOBR_DEPTH) >= 1; i++) {
182 182 sw_idx = (tail + i) & (JOBR_DEPTH - 1);
183 183  
184   - smp_read_barrier_depends();
185   -
186 184 if (jrp->outring[hw_idx].desc ==
187 185 jrp->entinfo[sw_idx].desc_addr_dma)
188 186 break; /* found */
... ... @@ -218,7 +216,6 @@
218 216 if (sw_idx == tail) {
219 217 do {
220 218 tail = (tail + 1) & (JOBR_DEPTH - 1);
221   - smp_read_barrier_depends();
222 219 } while (CIRC_CNT(head, tail, JOBR_DEPTH) >= 1 &&
223 220 jrp->entinfo[tail].desc_addr_dma == 0);
224 221