mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-24 05:36:52 +07:00
50a1062d61
xen_pmu_init/finish() functions are used in suspend.c and enlighten.c, add stubs for now. Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com> Reviewed-by: Juergen Gross <jgross@suse.com> Signed-off-by: Juergen Gross <jgross@suse.com>
21 lines
593 B
C
21 lines
593 B
C
#ifndef __XEN_PMU_H
|
|
#define __XEN_PMU_H
|
|
|
|
#include <xen/interface/xenpmu.h>
|
|
|
|
irqreturn_t xen_pmu_irq_handler(int irq, void *dev_id);
|
|
#ifdef CONFIG_XEN_HAVE_VPMU
|
|
void xen_pmu_init(int cpu);
|
|
void xen_pmu_finish(int cpu);
|
|
#else
|
|
static inline void xen_pmu_init(int cpu) {}
|
|
static inline void xen_pmu_finish(int cpu) {}
|
|
#endif
|
|
bool is_xen_pmu(int cpu);
|
|
bool pmu_msr_read(unsigned int msr, uint64_t *val, int *err);
|
|
bool pmu_msr_write(unsigned int msr, uint32_t low, uint32_t high, int *err);
|
|
int pmu_apic_update(uint32_t reg);
|
|
unsigned long long xen_read_pmc(int counter);
|
|
|
|
#endif /* __XEN_PMU_H */
|