15 #include <linux/module.h>
16 #include <linux/kernel.h>
17 #include <linux/bitops.h>
23 #include <asm/perf_event.h>
31 #define NMI_MAX_COUNTER_BITS 66
44 static inline unsigned int nmi_perfctr_msr_to_bit(
unsigned int msr)
72 static inline unsigned int nmi_evntsel_msr_to_bit(
unsigned int msr)
102 return !
test_bit(counter, perfctr_nmi_owner);
110 counter = nmi_perfctr_msr_to_bit(msr);
125 counter = nmi_perfctr_msr_to_bit(msr);
138 counter = nmi_evntsel_msr_to_bit(msr);
153 counter = nmi_evntsel_msr_to_bit(msr);