1 /* SPDX-License-Identifier: GPL-2.0 */
5 #include <xen/interface/xenpmu.h>
7 extern bool is_xen_pmu;
9 irqreturn_t xen_pmu_irq_handler(int irq, void *dev_id);
10 #ifdef CONFIG_XEN_HAVE_VPMU
11 void xen_pmu_init(int cpu);
12 void xen_pmu_finish(int cpu);
14 static inline void xen_pmu_init(int cpu) {}
15 static inline void xen_pmu_finish(int cpu) {}
17 bool pmu_msr_read(unsigned int msr, uint64_t *val, int *err);
18 bool pmu_msr_write(unsigned int msr, uint32_t low, uint32_t high, int *err);
19 int pmu_apic_update(uint32_t reg);
20 unsigned long long xen_read_pmc(int counter);
22 #endif /* __XEN_PMU_H */