Merge tag 'mips_5.2' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux
[sfrench/cifs-2.6.git] / arch / arm64 / crypto / aes-ce-glue.c
index e6b3227bbf5798188e7d233d209f5f51376e3e25..3213843fcb46d0e2fc9b88cfa268289cf73e0aba 100644 (file)
@@ -12,6 +12,7 @@
 #include <asm/simd.h>
 #include <asm/unaligned.h>
 #include <crypto/aes.h>
+#include <crypto/internal/simd.h>
 #include <linux/cpufeature.h>
 #include <linux/crypto.h>
 #include <linux/module.h>
@@ -52,7 +53,7 @@ static void aes_cipher_encrypt(struct crypto_tfm *tfm, u8 dst[], u8 const src[])
 {
        struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm);
 
-       if (!may_use_simd()) {
+       if (!crypto_simd_usable()) {
                __aes_arm64_encrypt(ctx->key_enc, dst, src, num_rounds(ctx));
                return;
        }
@@ -66,7 +67,7 @@ static void aes_cipher_decrypt(struct crypto_tfm *tfm, u8 dst[], u8 const src[])
 {
        struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm);
 
-       if (!may_use_simd()) {
+       if (!crypto_simd_usable()) {
                __aes_arm64_decrypt(ctx->key_dec, dst, src, num_rounds(ctx));
                return;
        }