Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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();