Skip to contentSkip to conversation

Fix IRQ priority search confusion

PATCH In review Liu Yu 1 participant 1 message Dec 18, 2008

Subsystems (2)
lore
Share & tools
lore

Liu Yu

author
#0 lore raw

PATCH 9/10 Fix IRQ priority search confusion

Although BOOKE_MAX_INTERRUPT has the right value, the meaning is not match.

---
 arch/powerpc/kvm/booke.c |    2 +-
 arch/powerpc/kvm/booke.h |    1 +
 2 files changed, 2 insertions(+), 1 deletions(-)
arch/powerpc/kvm/booke.c +1 -1
index 933c406..f192fbe 100644
@@ -163,7 +163,7 @@ void kvmppc_core_deliver_interrupts(struct kvm_vcpu *vcpu)
 	unsigned int priority;
 
 	priority = __ffs(*pending);
-	while (priority <= BOOKE_MAX_INTERRUPT) {
+	while (priority <= BOOKE_IRQPRIO_MAX) {
 		if (kvmppc_booke_irqprio_deliver(vcpu, priority))
 			break;
 
arch/powerpc/kvm/booke.h +1 -0
index 311fdbc..7ceeb3e 100644
@@ -42,6 +42,7 @@
 #define BOOKE_IRQPRIO_EXTERNAL 13
 #define BOOKE_IRQPRIO_FIT 14
 #define BOOKE_IRQPRIO_DECREMENTER 15
+#define BOOKE_IRQPRIO_MAX 15
 
 /* Helper function for "full" MSR writes. No need to call this if only EE is
  * changing. */
Signature · 1 line
1.5.4