crypto: caam/jr - Remove spinlock for output job ring
authorVakul Garg <vakul.garg@nxp.com>
Fri, 22 Mar 2019 02:00:34 +0000 (02:00 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 28 Mar 2019 05:55:34 +0000 (13:55 +0800)
commita118dfa0dbfcc8e95833b4bb7d83271ba85cf397
tree7b820dd56c0941a83ba269454cf28742a15a3010
parente44e77ab8bbf03ae164090ca7b8cc0fb8970dae9
crypto: caam/jr - Remove spinlock for output job ring

For each job ring pair, the output ring is processed exactly by one cpu
at a time under a tasklet context (one per ring). Therefore, there is no
need to protect a job ring's access & its private data structure using a
lock. Hence the lock can be removed.

Signed-off-by: Vakul Garg <vakul.garg@nxp.com>
Reviewed-by: Horia Geanta <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/intern.h
drivers/crypto/caam/jr.c