mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Stephane Eranian <eranian@hpl.hp.com>
To: linux-kernel@vger.kernel.org
Cc: Stephane Eranian <eranian@hpl.hp.com>,
	ak@suse.de, akpm@linux-foundation.org
Subject: [PATCH] x86-64 add cpu_has_arch_perfmon macro
Date: Fri, 1 Jun 2007 07:36:16 -0700	[thread overview]
Message-ID: <20070601143616.GI24898@frankl.hpl.hp.com> (raw)

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 <eranian@hpl.hp.com>

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 */

                 reply	other threads:[~2007-06-01 14:36 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070601143616.GI24898@frankl.hpl.hp.com \
    --to=eranian@hpl.hp.com \
    --cc=ak@suse.de \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®