Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 8a1955f9 authored by Peter Lafreniere's avatar Peter Lafreniere Committed by Herbert Xu
Browse files

crypto: x86 - exit fpu context earlier in ECB/CBC macros


Currently the ecb/cbc macros hold fpu context unnecessarily when using
scalar cipher routines (e.g. when handling odd sizes of blocks per walk).

Change the macros to drop fpu context as soon as the fpu is out of use.

No performance impact found (on Intel Haswell).

Signed-off-by: default avatarPeter Lafreniere <peter@n8pjl.ca>
Acked-by: default avatarArd Biesheuvel <ardb@kernel.org>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 42a9a08b
Branches
Tags
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