From: Arnd Bergmann Date: Tue, 25 Mar 2014 15:52:25 +0000 (+0100) Subject: Xen: do hv callback accounting only on x86 X-Git-Tag: v4.9.8~6405^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d06eb3ee9b09d753dc0883cc388d9a503839d6ca;p=platform%2Fkernel%2Flinux-rpi3.git Xen: do hv callback accounting only on x86 Patch 99c8b79d3c1 "xen: Add proper irq accounting for HYPERCALL vector" added a call to inc_irq_stat(irq_hv_callback_count) in common Xen code, however both the inc_irq_stat function and the irq_hv_callback_count counter are architecture specific. This makes the code build again on ARM by moving the call into the existing #ifdef CONFIG_X86. We may want to later do the same implementation on ARM that x86 has though. Signed-off-by: Arnd Bergmann Signed-off-by: David Vrabel Cc: Thomas Gleixner Cc: Peter Zijlstra Cc: Konrad Rzeszutek Wilk Cc: Xen --- diff --git a/drivers/xen/events/events_base.c b/drivers/xen/events/events_base.c index d5a3de8..dfa12a4 100644 --- a/drivers/xen/events/events_base.c +++ b/drivers/xen/events/events_base.c @@ -1248,8 +1248,8 @@ void xen_evtchn_do_upcall(struct pt_regs *regs) irq_enter(); #ifdef CONFIG_X86 exit_idle(); -#endif inc_irq_stat(irq_hv_callback_count); +#endif __xen_evtchn_do_upcall();