diff options
author | Alexander Graf <agraf@suse.de> | 2012-02-16 09:12:46 -0500 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2012-04-08 05:55:06 -0400 |
commit | 8b3a00fcd3c9ea4e2cbae12af3cd8c9d7d1e109a (patch) | |
tree | b65c97090a8224eac9e87deb51f28139eb7e875a /arch/powerpc/kvm/booke.c | |
parent | a8e4ef841429d338b8700998afb3dfc18c1f25d9 (diff) |
KVM: PPC: booke: BOOKE_IRQPRIO_MAX is n+1
The semantics of BOOKE_IRQPRIO_MAX changed to denote the highest available
irqprio + 1, so let's reflect that in the code too.
Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/powerpc/kvm/booke.c')
-rw-r--r-- | arch/powerpc/kvm/booke.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kvm/booke.c b/arch/powerpc/kvm/booke.c index 3da0e4273389..11b06251e42e 100644 --- a/arch/powerpc/kvm/booke.c +++ b/arch/powerpc/kvm/booke.c | |||
@@ -425,7 +425,7 @@ static void kvmppc_core_check_exceptions(struct kvm_vcpu *vcpu) | |||
425 | } | 425 | } |
426 | 426 | ||
427 | priority = __ffs(*pending); | 427 | priority = __ffs(*pending); |
428 | while (priority <= BOOKE_IRQPRIO_MAX) { | 428 | while (priority < BOOKE_IRQPRIO_MAX) { |
429 | if (kvmppc_booke_irqprio_deliver(vcpu, priority)) | 429 | if (kvmppc_booke_irqprio_deliver(vcpu, priority)) |
430 | break; | 430 | break; |
431 | 431 | ||