Skip to content

Commit d06eb3e

Browse files
arndbDavid Vrabel
authored andcommitted
Xen: do hv callback accounting only on x86
Patch 99c8b79 "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>
1 parent 2c5cb27 commit d06eb3e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/xen/events/events_base.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1248,8 +1248,8 @@ void xen_evtchn_do_upcall(struct pt_regs *regs)
12481248
irq_enter();
12491249
#ifdef CONFIG_X86
12501250
exit_idle();
1251-
#endif
12521251
inc_irq_stat(irq_hv_callback_count);
1252+
#endif
12531253

12541254
__xen_evtchn_do_upcall();
12551255

0 commit comments

Comments
 (0)