]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: x86/chacha - yield the FPU occasionally
authorEric Biggers <ebiggers@google.com>
Wed, 5 Dec 2018 06:20:05 +0000 (22:20 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 13 Dec 2018 10:24:58 +0000 (18:24 +0800)
commit42a65e5df67cfae9b3bf978381b23653edcf6fb0
tree333b9c17544307a5f9fa06ffac438bd116f4f727
parent2c34eb3f3a27e600811febc6f243493e03e8175b
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 <martin@strongswan.org>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/x86/crypto/chacha_glue.c