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)
commit6b0daa78207b622d768cce2a8251c830256bade9
tree7df55959189a04f1a0158c2899794949f1b1f594
parentfaa16bc404d72a5afb857c924c83a5f691f83386
crypto: arm64/sha256 - increase cra_priority of scalar implementations

Commit b73b7ac0a774 ("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