From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1423392Ab3CVV3Z (ORCPT ); Fri, 22 Mar 2013 17:29:25 -0400 Received: from mga02.intel.com ([134.134.136.20]:39046 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932468Ab3CVV3V (ORCPT ); Fri, 22 Mar 2013 17:29:21 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.84,893,1355126400"; d="scan'208";a="283393756" Subject: [PATCH 01/11] Added macro to check for AVX2 feature. From: Tim Chen To: Herbert Xu , "H. Peter Anvin" , "David S.Miller" Cc: Kirk Yap , David Cote , James Guilford , Wajdi Feghali , linux-kernel , linux-crypto@vger.kernel.org In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Date: Fri, 22 Mar 2013 14:29:02 -0700 Message-ID: <1363987742.8972.55.camel@schen9-DESK> Mime-Version: 1.0 X-Mailer: Evolution 2.32.3 (2.32.3-1.fc14) Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- 1.7.11.7