irqchip/gic-v3-its: Factor out wait_for_syncr primitive
authorMarc Zyngier <maz@kernel.org>
Fri, 8 Nov 2019 16:57:56 +0000 (16:57 +0000)
committerMarc Zyngier <maz@kernel.org>
Sun, 10 Nov 2019 18:47:50 +0000 (18:47 +0000)
commit2f4f064b31315c7c8986522cf38ef6d11fb77986
treec4368660e76d75c46cda6057974aca4a782512a4
parent898aa5ce6158c5ccfc256bfc17963bc81981eef8
irqchip/gic-v3-its: Factor out wait_for_syncr primitive

Waiting for a redistributor to have performed an operation is a
common thing to do, and the idiom is already spread around.
As we're going to make even more use of this, let's have a primitive
that does just that.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Zenghui Yu <yuzenghui@huawei.com>
Link: https://lore.kernel.org/r/20191027144234.8395-3-maz@kernel.org
Link: https://lore.kernel.org/r/20191108165805.3071-3-maz@kernel.org
drivers/irqchip/irq-gic-v3-its.c