We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d82d8e commit a86740aCopy full SHA for a86740a
arch/x86/events/intel/pt.c
@@ -18,6 +18,7 @@
18
#include <linux/slab.h>
19
#include <linux/device.h>
20
21
+#include <asm/cpuid.h>
22
#include <asm/perf_event.h>
23
#include <asm/insn.h>
24
#include <asm/io.h>
arch/x86/events/intel/pt.h
@@ -37,9 +37,6 @@ struct topa_entry {
37
u64 rsvd4 : 12;
38
};
39
40
-/* TSC to Core Crystal Clock Ratio */
41
-#define CPUID_TSC_LEAF 0x15
42
-
43
struct pt_pmu {
44
struct pmu pmu;
45
u32 caps[PT_CPUID_REGS_NUM * PT_CPUID_LEAVES];
arch/x86/include/asm/cpuid.h
@@ -23,6 +23,7 @@ enum cpuid_regs_idx {
#define CPUID_MWAIT_LEAF 0x5
25
#define CPUID_DCA_LEAF 0x9
26
+#define CPUID_TSC_LEAF 0x15
27
28
#ifdef CONFIG_X86_32
29
bool have_cpuid_p(void);
0 commit comments