aboutsummaryrefslogtreecommitdiffstats
path: root/include/kvm
diff options
context:
space:
mode:
authorChristoffer Dall <christoffer.dall@linaro.org>2014-06-09 06:27:18 -0400
committerChristoffer Dall <christoffer.dall@linaro.org>2014-09-18 21:44:30 -0400
commit227844f53864077ccaefe01d0960fcccc03445ce (patch)
treeae1a5d1fd39e406948037278341ab6ecec405537 /include/kvm
parenta875dafcf9b6b266c855e1f9b0aa060ef585d38a (diff)
arm/arm64: KVM: Rename irq_state to irq_pending
The irq_state field on the distributor struct is ambiguous in its meaning; the comment says it's the level of the input put, but that doesn't make much sense for edge-triggered interrupts. The code actually uses this state variable to check if the interrupt is in the pending state on the distributor so clarify the comment and rename the actual variable and accessor methods. Acked-by: Marc Zyngier <marc.zyngier@arm.com> Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Diffstat (limited to 'include/kvm')
-rw-r--r--include/kvm/arm_vgic.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/kvm/arm_vgic.h b/include/kvm/arm_vgic.h
index 35b0c121bb65..388d442eecb5 100644
--- a/include/kvm/arm_vgic.h
+++ b/include/kvm/arm_vgic.h
@@ -140,8 +140,8 @@ struct vgic_dist {
140 /* Interrupt enabled (one bit per IRQ) */ 140 /* Interrupt enabled (one bit per IRQ) */
141 struct vgic_bitmap irq_enabled; 141 struct vgic_bitmap irq_enabled;
142 142
143 /* Interrupt 'pin' level */ 143 /* Interrupt state is pending on the distributor */
144 struct vgic_bitmap irq_state; 144 struct vgic_bitmap irq_pending;
145 145
146 /* Level-triggered interrupt in progress */ 146 /* Level-triggered interrupt in progress */
147 struct vgic_bitmap irq_active; 147 struct vgic_bitmap irq_active;