d5ecfdd25 moved it out because back than it was impossible to
call it inside spinlock. This restriction no longer exists.
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
 
 {
        struct kvm *kvm = s->kvm;
        unsigned acks = s->pending_acks;
-       bool wakeup = s->wakeup_needed;
        struct kvm_vcpu *vcpu;
 
        s->pending_acks = 0;
-       s->wakeup_needed = false;
 
        spin_unlock(&s->lock);
 
                                     __ffs(acks));
                acks &= acks - 1;
        }
-
-       if (wakeup) {
-               vcpu = s->kvm->bsp_vcpu;
-               if (vcpu)
-                       kvm_vcpu_kick(vcpu);
-       }
 }
 
 static void pic_clear_isr(struct kvm_kpic_state *s, int irq)
        s->output = level;
        if (vcpu && level && (s->pics[0].isr_ack & (1 << irq))) {
                s->pics[0].isr_ack &= ~(1 << irq);
-               s->wakeup_needed = true;
+               kvm_vcpu_kick(vcpu);
        }
 }
 
 
 
 struct kvm_pic {
        spinlock_t lock;
-       bool wakeup_needed;
        unsigned pending_acks;
        struct kvm *kvm;
        struct kvm_kpic_state pics[2]; /* 0 is master pic, 1 is slave pic */