aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <[email protected]>2021-09-28 13:54:01 +0200
committerHerbert Xu <[email protected]>2021-10-08 20:02:46 +0800
commit82e269ad8afe1c73aa6c28dca3c23fecc6c8b616 (patch)
tree69f1df91ff3f788f505d0568dace8868644a8c94 /scripts/gdb/linux
parent32dfef6f92dd0aa287a4798a4a358c351f78aa32 (diff)
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 <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'scripts/gdb/linux')
0 files changed, 0 insertions, 0 deletions