Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b664d6bb authored by Robert Richter's avatar Robert Richter Committed by Ingo Molnar
Browse files

x86: add X86_FEATURE_IBS cpu feature



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

Signed-off-by: default avatarRobert Richter <robert.richter@amd.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 93e1ade5
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -106,6 +106,7 @@
/* More extended AMD flags: CPUID level 0x80000001, ecx, word 6 */
/* 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_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_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
 * Auxiliary flags: Linux defined - For features scattered in various