Skip to contentSkip to conversation

i386 add cpu_has_arch_perfmon macro

PATCH New Stephane Eranian 1 participant 1 message Jun 1, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i386 add cpu_has_arch_perfmon macro

Hello,

The following patch for i386 adds a macro to test for X86_FEATURE_ARCH_PERFMON. An equivalent patch will follow for x86-64.

changelog:
- add cpu_has_arch_perfmon macro to test for X86_FEATURE_ARCH_PERFMON

include/asm-i386/cpufeature.h +1 -0
diff -urNp --exclude=.git linux-2.6.22.orig/include/asm-i386/cpufeature.h linux-2.6.22.base/include/asm-i386/cpufeature.h
@@ -150,6 +150,7 @@
 #define cpu_has_pebs 		boot_cpu_has(X86_FEATURE_PEBS)
 #define cpu_has_clflush		boot_cpu_has(X86_FEATURE_CLFLSH)
 #define cpu_has_bts 		boot_cpu_has(X86_FEATURE_BTS)
+#define cpu_has_arch_perfmon	boot_cpu_has(X86_FEATURE_ARCH_PERFMON)
 
 #endif /* __ASM_I386_CPUFEATURE_H */
 
Signature · 1 line
-Stephane