• Pavel Fedin's avatar
    KVM: arm/arm64: Clean up vgic_retire_lr() and surroundings · 212c7654
    Pavel Fedin authored
    1. Remove unnecessary 'irq' argument, because irq number can be retrieved
       from the LR.
    2. Since cff9211e
       ("arm/arm64: KVM: Fix arch timer behavior for disabled interrupts ")
       LR_STATE_PENDING is queued back by vgic_retire_lr() itself. Also, it
       clears vlr.state itself. Therefore, we remove the same, now duplicated,
       check with all accompanying bit manipulations from vgic_unqueue_irqs().
    3. vgic_retire_lr() is always accompanied by vgic_irq_clear_queued(). Since
       it already does more than just clearing the LR, move
       vgic_irq_clear_queued() inside of it.
    Signed-off-by: default avatarPavel Fedin <p.fedin@samsung.com>
    Signed-off-by: default avatarChristoffer Dall <christoffer.dall@linaro.org>
    212c7654
vgic.c 63 KB