summaryrefslogtreecommitdiff
path: root/crypto/tcrypt.c
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2021-09-28 13:54:01 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2021-10-08 20:02:46 +0800
commit5c734c638aa1a3dbfd96248703e070706343284b (patch)
treeb61bfab72d5e728f4073ad094c2c73db9131c2a0 /crypto/tcrypt.c
parent249067af018369c279ae20e88415b94740a29c46 (diff)
downloadlinux-crypto-5c734c638aa1a3dbfd96248703e070706343284b.tar.gz
linux-crypto-5c734c638aa1a3dbfd96248703e070706343284b.zip
crypto: testmgr - Only disable migration in crypto_disable_simd_for_test()
crypto_disable_simd_for_test() disables preemption in order to receive a stable per-CPU variable which it needs to modify in order to alter crypto_simd_usable() results. This can also be achived by migrate_disable() which forbidds CPU migrations but allows the task to be preempted. The latter is important for PREEMPT_RT since operation like skcipher_walk_first() may allocate memory which must not happen with disabled preemption on PREEMPT_RT. Use migrate_disable() in crypto_disable_simd_for_test() to achieve a stable per-CPU pointer. Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/tcrypt.c')
0 files changed, 0 insertions, 0 deletions