Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <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>

authored by

Arnd Bergmann and committed by
David Vrabel
d06eb3ee 2c5cb277

+1 -1
+1 -1
drivers/xen/events/events_base.c
··· 1248 1248 irq_enter(); 1249 1249 #ifdef CONFIG_X86 1250 1250 exit_idle(); 1251 - #endif 1252 1251 inc_irq_stat(irq_hv_callback_count); 1252 + #endif 1253 1253 1254 1254 __xen_evtchn_do_upcall(); 1255 1255