crypto: xor - defer load time benchmark to a later time
authorArd Biesheuvel <ardb@kernel.org>
Sat, 26 Sep 2020 10:26:50 +0000 (12:26 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 2 Oct 2020 08:02:14 +0000 (18:02 +1000)
commit524ccdbdfb52608e9b98fcd64f4337add7009f41
treec7c289e366d7739f816ec2736c5ce0cd975c66de
parent2fcb4cc3b0303845752fa3f1497a0b037a319063
crypto: xor - defer load time benchmark to a later time

Currently, the XOR module performs its boot time benchmark at core
initcall time when it is built-in, to ensure that the RAID code can
make use of it when it is built-in as well.

Let's defer this to a later stage during the boot, to avoid impacting
the overall boot time of the system. Instead, just pick an arbitrary
implementation from the list, and use that as the preliminary default.

Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/xor.c