arm: vgic: Use find_first_bit instead of find_next_bit when possible
authorArtem Mygaiev <artem_mygaiev@epam.com>
Thu, 24 May 2018 18:54:38 +0000 (11:54 -0700)
committerJulien Grall <julien.grall@arm.com>
Tue, 5 Jun 2018 17:14:12 +0000 (18:14 +0100)
commit5c8d5fb0c524391e07f2da4660a9970af3cb4025
treede194e2a3399160800ae082389ece2c5a0e03a9f
parent3960f3a52346348e6b0306f65d19375612bd35b9
arm: vgic: Use find_first_bit instead of find_next_bit when possible

find_next_bit(foo, sz, 0) is equivalent to find_first_bit(foo, sz). The
latter is easier to understand. Some architecture may also have a
optimized version of find_first_bit(...). So replace the occurrence of
find_next_bit in vgic_vcpu_pending_irq()."

Signed-off-by: Artem Mygaiev <artem_mygaiev@epam.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/gic-vgic.c