mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] x86-64 add cpu_has_arch_perfmon macro
@ 2007-06-01 14:36 Stephane Eranian
  0 siblings, 0 replies; only message in thread
From: Stephane Eranian @ 2007-06-01 14:36 UTC (permalink / raw)
  To: linux-kernel; +Cc: Stephane Eranian, ak, akpm

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-06-01 14:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-01 14:36 [PATCH] x86-64 add cpu_has_arch_perfmon macro Stephane Eranian

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®