xen/arm: vgic: Introduce a new field to store the rank index and use it
authorJulien Grall <julien.grall@citrix.com>
Wed, 7 Oct 2015 14:41:08 +0000 (15:41 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 8 Oct 2015 11:22:46 +0000 (12:22 +0100)
commit2c20224c72fbe40d22859b4e052d9c18eb89e42c
tree5fa12fb5c657fafc7a35fdfb08edd665757bd991
parentf699fd55e9860aa207945abbaadac44855caf6e5
xen/arm: vgic: Introduce a new field to store the rank index and use it

Having in hand the index for the rank is very handy to avoid computing
it every time.

For now, use it when enabling/disabling the vIRQs rather than a formula
which is not obvious to understand.

Also drop the comments which were wrong because a shift by DABT_WORD
will not give the IRQ number but the index of the register.

Signed-off-by: Julien Grall <julien.grall@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/vgic-v2.c
xen/arch/arm/vgic-v3.c
xen/arch/arm/vgic.c
xen/include/asm-arm/vgic.h