x86: add X86_FEATURE_IBS cpu feature
authorRobert Richter <robert.richter@amd.com>
Tue, 24 Jun 2008 10:31:05 +0000 (12:31 +0200)
committerIngo Molnar <mingo@elte.hu>
Tue, 24 Jun 2008 11:59:40 +0000 (13:59 +0200)
This adds IBS to the cpu feature flags allowing Perfmon and OProfile
to use cpu_has().

Signed-off-by: Robert Richter <robert.richter@amd.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/asm-x86/cpufeature.h

index 0d609c8..e2469a7 100644 (file)
 /* 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