Skip to content
Commit 11144416 authored by Valentin Ciocoi Radulescu's avatar Valentin Ciocoi Radulescu Committed by Herbert Xu
Browse files

crypto: caam/qi - optimize frame queue cleanup



Add reference counter incremented for each frame enqueued in CAAM
and replace unconditional sleep in empty_caam_fq() with polling the
reference counter.

When CONFIG_CRYPTO_MANAGER_EXTRA_TESTS=y boot time on LS1043A
platform with this optimization decreases from ~1100s to ~11s.

Signed-off-by: default avatarValentin Ciocoi Radulescu <valentin.ciocoi@nxp.com>
Reviewed-by: default avatarHoria Geantă <horia.geanta@nxp.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 21f802cc
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment