summaryrefslogtreecommitdiff
path: root/arch/x86/events
diff options
context:
space:
mode:
authorArd Biesheuvel <ardb@kernel.org>2021-01-04 16:55:50 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2021-01-14 17:10:25 +1100
commitd6cbf4eaa46794b173c691a71211d882398d7977 (patch)
treeca94a2b4faddddd6b892f0f4d21f4ece1e22a839 /arch/x86/events
parent83c83e658863e4e57f4defe6cc1bc05f3d968e2a (diff)
crypto: aesni - replace function pointers with static branches
Replace the function pointers in the GCM implementation with static branches, which are based on code patching, which occurs only at module load time. This avoids the severe performance penalty caused by the use of retpolines. In order to retain the ability to switch between different versions of the implementation based on the input size on cores that support AVX and AVX2, use static branches instead of static calls. Signed-off-by: Ard Biesheuvel <ardb@kernel.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'arch/x86/events')
0 files changed, 0 insertions, 0 deletions