From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761620AbXFAOgf (ORCPT ); Fri, 1 Jun 2007 10:36:35 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758803AbXFAOg2 (ORCPT ); Fri, 1 Jun 2007 10:36:28 -0400 Received: from madara.hpl.hp.com ([192.6.19.124]:60602 "EHLO madara.hpl.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758385AbXFAOg2 (ORCPT ); Fri, 1 Jun 2007 10:36:28 -0400 Date: Fri, 1 Jun 2007 07:36:16 -0700 From: Stephane Eranian To: linux-kernel@vger.kernel.org Cc: Stephane Eranian , ak@suse.de, akpm@linux-foundation.org Subject: [PATCH] x86-64 add cpu_has_arch_perfmon macro Message-ID: <20070601143616.GI24898@frankl.hpl.hp.com> Reply-To: eranian@hpl.hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Organisation: HP Labs Palo Alto Address: HP Labs, 1U-17, 1501 Page Mill road, Palo Alto, CA 94304, USA. E-mail: eranian@hpl.hp.com X-HPL-MailScanner: Found to be clean X-HPL-MailScanner-From: eranian@hpl.hp.com Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hello, The following patch for x86-64 adds a macro to test for X86_FEATURE_ARCH_PERFMON. An equivalent patch was posted for i386 changelog: - add cpu_has_arch_perfmon macro to test for X86_FEATURE_ARCH_PERFMON signed-off-by: stephane eranian diff -urNp --exclude=.git linux-2.6.22.orig/include/asm-x86_64/cpufeature.h linux-2.6.22.base/include/asm-x86_64/cpufeature.h --- linux-2.6.22.orig/include/asm-x86_64/cpufeature.h 2007-05-30 04:02:28.000000000 -0700 +++ linux-2.6.22.base/include/asm-x86_64/cpufeature.h 2007-06-01 07:22:53.000000000 -0700 @@ -117,5 +117,6 @@ #define cpu_has_ds boot_cpu_has(X86_FEATURE_DS) #define cpu_has_pebs boot_cpu_has(X86_FEATURE_PEBS) #define cpu_has_bts boot_cpu_has(X86_FEATURE_BTS) +#define cpu_has_arch_perfmon boot_cpu_has(X86_FEATURE_ARCH_PERFMON) #endif /* __ASM_X8664_CPUFEATURE_H */