diff options
author | David S. Miller <davem@davemloft.net> | 2012-09-15 20:06:30 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-09-15 20:06:30 +0400 |
commit | 1080362425793f67e36dc690973e13e4a9631b4d (patch) | |
tree | 7c41ddc540679c9782ca9b448cbca8f52e9b6d47 /arch/sparc/crypto/sha256_glue.c | |
parent | c69ad0a3f7d871aa61fb669fb41c951df6660a61 (diff) | |
download | linux-1080362425793f67e36dc690973e13e4a9631b4d.tar.xz |
sparc64: Adjust crypto priorities.
Make the crypto opcode implementations have a higher priority than
those provides by the ring buffer based Niagara crypto device.
Also, several crypto opcode hashes were not setting the priority value
at all.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/crypto/sha256_glue.c')
-rw-r--r-- | arch/sparc/crypto/sha256_glue.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/sparc/crypto/sha256_glue.c b/arch/sparc/crypto/sha256_glue.c index 75e1adeeb024..591e656bd891 100644 --- a/arch/sparc/crypto/sha256_glue.c +++ b/arch/sparc/crypto/sha256_glue.c @@ -21,6 +21,8 @@ #include <asm/pstate.h> #include <asm/elf.h> +#include "opcodes.h" + asmlinkage void sha256_sparc64_transform(u32 *digest, const char *data, unsigned int rounds); @@ -166,6 +168,7 @@ static struct shash_alg sha256 = { .base = { .cra_name = "sha256", .cra_driver_name= "sha256-sparc64", + .cra_priority = SPARC_CR_OPCODE_PRIORITY, .cra_flags = CRYPTO_ALG_TYPE_SHASH, .cra_blocksize = SHA256_BLOCK_SIZE, .cra_module = THIS_MODULE, @@ -181,6 +184,7 @@ static struct shash_alg sha224 = { .base = { .cra_name = "sha224", .cra_driver_name= "sha224-sparc64", + .cra_priority = SPARC_CR_OPCODE_PRIORITY, .cra_flags = CRYPTO_ALG_TYPE_SHASH, .cra_blocksize = SHA224_BLOCK_SIZE, .cra_module = THIS_MODULE, |