Commit d06eb3ee authored by Arnd Bergmann's avatar Arnd Bergmann Committed by David Vrabel

Xen: do hv callback accounting only on x86

Patch 99c8b79d "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: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarDavid 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>
parent 2c5cb277
...@@ -1248,8 +1248,8 @@ void xen_evtchn_do_upcall(struct pt_regs *regs) ...@@ -1248,8 +1248,8 @@ void xen_evtchn_do_upcall(struct pt_regs *regs)
irq_enter(); irq_enter();
#ifdef CONFIG_X86 #ifdef CONFIG_X86
exit_idle(); exit_idle();
#endif
inc_irq_stat(irq_hv_callback_count); inc_irq_stat(irq_hv_callback_count);
#endif
__xen_evtchn_do_upcall(); __xen_evtchn_do_upcall();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment