diff options
Diffstat (limited to 'arch/x86/crypto/sha256_ssse3_glue.c')
| -rw-r--r-- | arch/x86/crypto/sha256_ssse3_glue.c | 7 | 
1 files changed, 4 insertions, 3 deletions
| diff --git a/arch/x86/crypto/sha256_ssse3_glue.c b/arch/x86/crypto/sha256_ssse3_glue.c index 773a873d2b28..73867da3cbee 100644 --- a/arch/x86/crypto/sha256_ssse3_glue.c +++ b/arch/x86/crypto/sha256_ssse3_glue.c @@ -30,6 +30,7 @@  #define pr_fmt(fmt)	KBUILD_MODNAME ": " fmt  #include <crypto/internal/hash.h> +#include <crypto/internal/simd.h>  #include <linux/init.h>  #include <linux/module.h>  #include <linux/mm.h> @@ -37,8 +38,8 @@  #include <linux/types.h>  #include <crypto/sha.h>  #include <crypto/sha256_base.h> -#include <asm/fpu/api.h>  #include <linux/string.h> +#include <asm/simd.h>  asmlinkage void sha256_transform_ssse3(u32 *digest, const char *data,  				       u64 rounds); @@ -49,7 +50,7 @@ static int sha256_update(struct shash_desc *desc, const u8 *data,  {  	struct sha256_state *sctx = shash_desc_ctx(desc); -	if (!irq_fpu_usable() || +	if (!crypto_simd_usable() ||  	    (sctx->count % SHA256_BLOCK_SIZE) + len < SHA256_BLOCK_SIZE)  		return crypto_sha256_update(desc, data, len); @@ -67,7 +68,7 @@ static int sha256_update(struct shash_desc *desc, const u8 *data,  static int sha256_finup(struct shash_desc *desc, const u8 *data,  	      unsigned int len, u8 *out, sha256_transform_fn *sha256_xform)  { -	if (!irq_fpu_usable()) +	if (!crypto_simd_usable())  		return crypto_sha256_finup(desc, data, len, out);  	kernel_fpu_begin(); |