[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <09e94963-5146-4c1b-ab76-64ac73d660ab@email.android.com>
Date: Fri, 22 Mar 2013 17:21:19 -0700
From: "H. Peter Anvin" <hpa@...or.com>
To: Tim Chen <tim.c.chen@...ux.intel.com>,
Herbert Xu <herbert@...dor.hengli.com.au>,
"David S.Miller" <davem@...emloft.net>
CC: Kirk Yap <kirk.s.yap@...el.com>,
David Cote <david.m.cote@...el.com>,
James Guilford <james.guilford@...el.com>,
Wajdi Feghali <wajdi.k.feghali@...el.com>,
linux-kernel <linux-kernel@...r.kernel.org>,
linux-crypto@...r.kernel.org
Subject: Re: [PATCH 01/11] Added macro to check for AVX2 feature.
I really, really hate these macros... Not sure they are worth the extra noise.
Tim Chen <tim.c.chen@...ux.intel.com> wrote:
>Macro to facilitate checking the availability of the AVX2 feature.
>
>Signed-off-by: Tim Chen <tim.c.chen@...ux.intel.com>
>---
> arch/x86/include/asm/cpufeature.h | 1 +
> 1 file changed, 1 insertion(+)
>
>diff --git a/arch/x86/include/asm/cpufeature.h
>b/arch/x86/include/asm/cpufeature.h
>index 2d9075e..db98ec7 100644
>--- a/arch/x86/include/asm/cpufeature.h
>+++ b/arch/x86/include/asm/cpufeature.h
>@@ -313,6 +313,7 @@ extern const char * const x86_power_flags[32];
> #define cpu_has_cx16 boot_cpu_has(X86_FEATURE_CX16)
> #define cpu_has_eager_fpu boot_cpu_has(X86_FEATURE_EAGER_FPU)
> #define cpu_has_topoext boot_cpu_has(X86_FEATURE_TOPOEXT)
>+#define cpu_has_avx2 boot_cpu_has(X86_FEATURE_AVX2)
>
> #ifdef CONFIG_X86_64
>
--
Sent from my mobile phone. Please excuse brevity and lack of formatting.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists