summaryrefslogtreecommitdiffstats
path: root/arch/x86/xen/pmu.h
diff options
context:
space:
mode:
authorJuergen Gross <jgross@suse.com>2024-07-10 11:37:18 +0200
committerJuergen Gross <jgross@suse.com>2024-07-11 16:33:48 +0200
commitbcea31e2d1c7a34aeeae9458f38833d5a8409cf7 (patch)
tree6719bf2577a5d2fc8eedbf934e6651540237f496 /arch/x86/xen/pmu.h
parentx86/xen: make some functions static (diff)
downloadlinux-bcea31e2d1c7a34aeeae9458f38833d5a8409cf7.tar.xz
linux-bcea31e2d1c7a34aeeae9458f38833d5a8409cf7.zip
x86/xen: eliminate some private header files
Under arch/x86/xen there is one large private header file xen-ops.h containing most of the Xen-private x86 related declarations, and then there are several small headers with a handful of declarations each. Merge the small headers into xen-ops.h. While doing that, move the declaration of xen_fifo_events from xen-ops.h into include/xen/events.h where it should have been from the beginning. Signed-off-by: Juergen Gross <jgross@suse.com> Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com> Message-ID: <20240710093718.14552-3-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.h22
1 files changed, 0 insertions, 22 deletions
diff --git a/arch/x86/xen/pmu.h b/arch/x86/xen/pmu.h
deleted file mode 100644
index 65c58894fc79..000000000000
--- a/arch/x86/xen/pmu.h
+++ /dev/null
@@ -1,22 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-#ifndef __XEN_PMU_H
-#define __XEN_PMU_H
-
-#include <xen/interface/xenpmu.h>
-
-extern bool is_xen_pmu;
-
-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 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 */