projects
/
linux-2.6-block.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
[linux-2.6-block.git]
/
arch
/
x86
/
crypto
/
sha256_ssse3_glue.c
diff --git
a/arch/x86/crypto/sha256_ssse3_glue.c
b/arch/x86/crypto/sha256_ssse3_glue.c
index 5f4d6086dc5913be7d680882ab94d2286ad3e230..3ae0f43ebd376527ec450f8a2dc16eee98f17fe9 100644
(file)
--- a/
arch/x86/crypto/sha256_ssse3_glue.c
+++ b/
arch/x86/crypto/sha256_ssse3_glue.c
@@
-201,7
+201,7
@@
static struct shash_alg sha256_avx_algs[] = { {
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;
}