From mboxrd@z Thu Jan 1 00:00:00 1970 From: "H. Peter Anvin" Subject: Re: [PATCH 01/11] Added macro to check for AVX2 feature. Date: Fri, 22 Mar 2013 17:21:19 -0700 Message-ID: <09e94963-5146-4c1b-ab76-64ac73d660ab@email.android.com> References: <1363987742.8972.55.camel@schen9-DESK> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Kirk Yap , David Cote , James Guilford , Wajdi Feghali , linux-kernel , linux-crypto@vger.kernel.org To: Tim Chen , Herbert Xu , "David S.Miller" Return-path: Received: from terminus.zytor.com ([198.137.202.10]:50884 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754709Ab3CWAVf (ORCPT ); Fri, 22 Mar 2013 20:21:35 -0400 In-Reply-To: <1363987742.8972.55.camel@schen9-DESK> Sender: linux-crypto-owner@vger.kernel.org List-ID: I really, really hate these macros... Not sure they are worth the extra noise. Tim Chen wrote: >Macro to facilitate checking the availability of the AVX2 feature. > >Signed-off-by: Tim Chen >--- > 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.