diff options
author | Vitaly Kuznetsov <vkuznets@redhat.com> | 2017-03-14 18:35:50 +0100 |
---|---|---|
committer | Juergen Gross <jgross@suse.com> | 2017-05-02 11:09:28 +0200 |
commit | 50a1062d61a62421f3181ce3e594a330f8a15cff (patch) | |
tree | f8cd7435d1faf675c739c636c4a7ba19fdbf5af2 /arch/x86/xen/pmu.h | |
parent | x86/xen: split suspend.c for PV and PVHVM guests (diff) | |
download | linux-50a1062d61a62421f3181ce3e594a330f8a15cff.tar.xz linux-50a1062d61a62421f3181ce3e594a330f8a15cff.zip |
x86/xen: put setup.c, pmu.c and apic.c under CONFIG_XEN_PV
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>
Diffstat (limited to 'arch/x86/xen/pmu.h')
-rw-r--r-- | arch/x86/xen/pmu.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86/xen/pmu.h b/arch/x86/xen/pmu.h index af5f0ad94078..4be5355b56f7 100644 --- a/arch/x86/xen/pmu.h +++ b/arch/x86/xen/pmu.h @@ -4,8 +4,13 @@ #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); |