|
@@ -35,7 +35,7 @@
|
|
|
|
|
|
asmlinkage void sha1_transform_ssse3(u32 *digest, const char *data,
|
|
asmlinkage void sha1_transform_ssse3(u32 *digest, const char *data,
|
|
unsigned int rounds);
|
|
unsigned int rounds);
|
|
-#ifdef SHA1_ENABLE_AVX_SUPPORT
|
|
|
|
|
|
+#ifdef CONFIG_AS_AVX
|
|
asmlinkage void sha1_transform_avx(u32 *digest, const char *data,
|
|
asmlinkage void sha1_transform_avx(u32 *digest, const char *data,
|
|
unsigned int rounds);
|
|
unsigned int rounds);
|
|
#endif
|
|
#endif
|
|
@@ -184,7 +184,7 @@ static struct shash_alg alg = {
|
|
}
|
|
}
|
|
};
|
|
};
|
|
|
|
|
|
-#ifdef SHA1_ENABLE_AVX_SUPPORT
|
|
|
|
|
|
+#ifdef CONFIG_AS_AVX
|
|
static bool __init avx_usable(void)
|
|
static bool __init avx_usable(void)
|
|
{
|
|
{
|
|
u64 xcr0;
|
|
u64 xcr0;
|
|
@@ -209,7 +209,7 @@ static int __init sha1_ssse3_mod_init(void)
|
|
if (cpu_has_ssse3)
|
|
if (cpu_has_ssse3)
|
|
sha1_transform_asm = sha1_transform_ssse3;
|
|
sha1_transform_asm = sha1_transform_ssse3;
|
|
|
|
|
|
-#ifdef SHA1_ENABLE_AVX_SUPPORT
|
|
|
|
|
|
+#ifdef CONFIG_AS_AVX
|
|
/* allow AVX to override SSSE3, it's a little faster */
|
|
/* allow AVX to override SSSE3, it's a little faster */
|
|
if (avx_usable())
|
|
if (avx_usable())
|
|
sha1_transform_asm = sha1_transform_avx;
|
|
sha1_transform_asm = sha1_transform_avx;
|