hw/intc/arm_gicv3_redist: Factor out "update hpplpi for all LPIs" logic
commit99ba56d25beb3962c2f876690fe429d817cb7b06
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 8 Apr 2022 14:15:37 +0000 (8 15:15 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 22 Apr 2022 13:44:53 +0000 (22 14:44 +0100)
tree8bfe728de35c74fa1c2de2c5b00db96318abbaa8
parente97be73c97b246e5e4c2582fafcaea0384e14964
hw/intc/arm_gicv3_redist: Factor out "update hpplpi for all LPIs" logic

Factor out the common part of gicv3_redist_update_lpi_only() into
a new function update_for_all_lpis(), which does a full rescan
of an LPI Pending table and sets the specified PendingIrq struct
with the highest priority pending enabled LPI it finds.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20220408141550.1271295-29-peter.maydell@linaro.org
hw/intc/arm_gicv3_redist.c