Skip to contentSkip to conversation

x86: Add X86_FEATURE_IBS cpu feature

PATCH Applied Robert Richter 2 participants 2 messages Jun 24, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: Add X86_FEATURE_IBS cpu feature

This adds IBS to the cpu feature flags allowing Perfmon and OProfile to use cpu_has().

---
 include/asm-x86/cpufeature.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
include/asm-x86/cpufeature.h +1 -0
index 0d609c8..e2469a7 100644
@@ -106,6 +106,7 @@
 /* More extended AMD flags: CPUID level 0x80000001, ecx, word 6 */
 #define X86_FEATURE_LAHF_LM	(6*32+ 0) /* LAHF/SAHF in long mode */
 #define X86_FEATURE_CMP_LEGACY	(6*32+ 1) /* If yes HyperThreading not valid */
+#define X86_FEATURE_IBS		(6*32+ 10) /* Instruction Based Sampling */
 
 /*
  * Auxiliary flags: Linux defined - For features scattered in various
Signature · 1 line
1.5.5.3
Applied
#1 lore raw
Quoted 2 lines · Robert Richter

This adds IBS to the cpu feature flags allowing Perfmon and OProfile to use cpu_has().

applied to tip/x86/oprofile - thanks Robert.

Ingo