From e5013d10206c7d9e73ff892bd58bb8fec7ea408f Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Fri, 6 Aug 2010 15:41:59 +0100 Subject: [PATCH] [IA64] xenoprof: fix ia64 build 21902:2c6ae364ed7b ("xenoprofile: Add IBS support") breaks ia64. This patch fixes it. Signed-off-by: KUWAMURA Shin'ya --- xen/common/xenoprof.c | 3 --- xen/include/asm-ia64/xenoprof.h | 7 +++++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/xen/common/xenoprof.c b/xen/common/xenoprof.c index ab95d92aaf..74d988a305 100644 --- a/xen/common/xenoprof.c +++ b/xen/common/xenoprof.c @@ -49,9 +49,6 @@ static u64 passive_samples; static u64 idle_samples; static u64 others_samples; -/* AMD IBS support */ -extern u32 ibs_caps; - int acquire_pmu_ownership(int pmu_ownship) { spin_lock(&pmu_owner_lock); diff --git a/xen/include/asm-ia64/xenoprof.h b/xen/include/asm-ia64/xenoprof.h index f5ac2a6f5d..336da4d3c8 100644 --- a/xen/include/asm-ia64/xenoprof.h +++ b/xen/include/asm-ia64/xenoprof.h @@ -34,6 +34,13 @@ void xenoprof_arch_stop(void); void xenoprof_arch_disable_virq(void); void xenoprof_arch_release_counters(void); +static inline int xenoprof_arch_ibs_counter(XEN_GUEST_HANDLE(void) arg) +{ + return -ENOSYS; /* not supported */ +} +/* AMD IBS not supported */ +#define ibs_caps 0 + struct vcpu; struct cpu_user_regs; int xenoprofile_get_mode(struct vcpu *v, struct cpu_user_regs * const regs); -- 2.39.5