aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/powerpc/kvm/booke.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kvm/booke.c b/arch/powerpc/kvm/booke.c
index b285e3d32466..0f064719162c 100644
--- a/arch/powerpc/kvm/booke.c
+++ b/arch/powerpc/kvm/booke.c
@@ -222,7 +222,7 @@ void kvmppc_core_deliver_interrupts(struct kvm_vcpu *vcpu)
222 unsigned int exception; 222 unsigned int exception;
223 unsigned int priority; 223 unsigned int priority;
224 224
225 priority = find_first_bit(pending, BITS_PER_BYTE * sizeof(*pending)); 225 priority = __ffs(*pending);
226 while (priority <= BOOKE_MAX_INTERRUPT) { 226 while (priority <= BOOKE_MAX_INTERRUPT) {
227 exception = priority_exception[priority]; 227 exception = priority_exception[priority];
228 if (kvmppc_can_deliver_interrupt(vcpu, exception)) { 228 if (kvmppc_can_deliver_interrupt(vcpu, exception)) {