Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 06bd9c96 authored by Eric Biggers's avatar Eric Biggers Committed by Herbert Xu
Browse files

crypto: api - compile out crypto_boot_test_finished when tests disabled


The crypto_boot_test_finished static key is unnecessary when self-tests
are disabled in the kconfig, so optimize it out accordingly, along with
the entirety of crypto_start_tests().  This mainly avoids the overhead
of an unnecessary static_branch_enable() on every boot.

Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 9cadd73a
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