Xen: do hv callback accounting only on x86
authorArnd Bergmann <arnd@arndb.de>
Tue, 25 Mar 2014 15:52:25 +0000 (16:52 +0100)
committerDavid Vrabel <david.vrabel@citrix.com>
Mon, 7 Apr 2014 13:12:38 +0000 (14:12 +0100)
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 <arnd@arndb.de>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: Xen <xen-devel@lists.xenproject.org>
drivers/xen/events/events_base.c

index d5a3de88ac59df240b09a6c21937eeec7754dd05..dfa12a4a0a48ffbaea7f64e4b0c95e6b2ca38932 100644 (file)
@@ -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();