]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: arm64/sha256 - increase cra_priority of scalar implementations
authorEric Biggers <ebiggers@google.com>
Tue, 17 Jul 2018 17:09:26 +0000 (10:09 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 27 Jul 2018 11:16:38 +0000 (19:16 +0800)
commit4897f2fcd7f56c1ca545a7f7f91d2f391c462f56
tree7df55959189a04f1a0158c2899794949f1b1f594
parent2cefaba9b5b4051833602c282aa6db13227149d8
crypto: arm64/sha256 - increase cra_priority of scalar implementations

Commit 2ca58437a81d ("crypto: sha256_generic - add cra_priority") gave
sha256-generic and sha224-generic a cra_priority of 100, to match the
convention for generic implementations.  But sha256-arm64 and
sha224-arm64 also have priority 100, so their order relative to the
generic implementations became ambiguous.

Therefore, increase their priority to 125 so that they have higher
priority than the generic implementations but lower priority than the
NEON implementations which have priority 150.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/arm64/crypto/sha256-glue.c