Commit d06eb3ee9b09d753dc0883cc388d9a503839d6ca

Authored by Arnd Bergmann
Committed by David Vrabel
1 parent 2c5cb27703

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/xen/events/events_base.c
... ... @@ -1248,8 +1248,8 @@
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