ARM: VGIC: rename gic_event_needs_delivery()
authorAndre Przywara <andre.przywara@linaro.org>
Thu, 15 Mar 2018 20:30:06 +0000 (20:30 +0000)
committerJulien Grall <julien.grall@arm.com>
Tue, 20 Mar 2018 08:19:10 +0000 (08:19 +0000)
commitcf29708ff6f945d5c00f9b4d2bd88d684e12897f
treebc8073d4ac35ca00a716507e0722f5d329c761b6
parent129666555387709105aca5e2adaad97d60333a3b
ARM: VGIC: rename gic_event_needs_delivery()

gic_event_needs_delivery() is not named very intuitively, especially
the gic_ prefix is somewhat misleading.
Rename it to vgic_vcpu_pending_irq(), which makes it clear that this
relates to the virtual GIC and is about interrupts.
Also add a VCPU parameter, which makes the code more flexible in the
future. The current VGIC expect this to be the current VCPU, so add
an assert to spot any regressions.

Signed-off-by: Andre Przywara <andre.przywara@linaro.org>
Reviewed-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/gic-vgic.c
xen/include/asm-arm/event.h
xen/include/asm-arm/gic.h