diff options
| author | Eric Biggers <[email protected]> | 2018-12-04 22:20:05 -0800 |
|---|---|---|
| committer | Herbert Xu <[email protected]> | 2018-12-13 18:24:58 +0800 |
| commit | a033aed5a84eb93a32929b6862602cb283d39e82 (patch) | |
| tree | 333b9c17544307a5f9fa06ffac438bd116f4f727 /lib/mpi/mpi-inline.h | |
| parent | 7a507d62258afd514583fadf1482451079fa0e4d (diff) | |
crypto: x86/chacha - yield the FPU occasionally
To improve responsiveness, yield the FPU (temporarily re-enabling
preemption) every 4 KiB encrypted/decrypted, rather than keeping
preemption disabled during the entire encryption/decryption operation.
Alternatively we could do this for every skcipher_walk step, but steps
may be small in some cases, and yielding the FPU is expensive on x86.
Suggested-by: Martin Willi <[email protected]>
Signed-off-by: Eric Biggers <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-inline.h')
0 files changed, 0 insertions, 0 deletions