projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
x86/cpufeature: Replace cpu_has_avx with boot_cpu_has() usage
[cascardo/linux.git]
/
arch
/
x86
/
crypto
/
sha1_ssse3_glue.c
diff --git
a/arch/x86/crypto/sha1_ssse3_glue.c
b/arch/x86/crypto/sha1_ssse3_glue.c
index
dd14616
..
1024e37
100644
(file)
--- a/
arch/x86/crypto/sha1_ssse3_glue.c
+++ b/
arch/x86/crypto/sha1_ssse3_glue.c
@@
-166,7
+166,7
@@
static struct shash_alg sha1_avx_alg = {
static bool avx_usable(void)
{
if (!cpu_has_xfeatures(XFEATURE_MASK_SSE | XFEATURE_MASK_YMM, NULL)) {
- if (
cpu_has_avx
)
+ if (
boot_cpu_has(X86_FEATURE_AVX)
)
pr_info("AVX detected but unusable.\n");
return false;
}