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 <[email protected]> Signed-off-by: David Vrabel <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Konrad Rzeszutek Wilk <[email protected]> Cc: Xen <[email protected]>
1 parent 2c5cb27 commit d06eb3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)