diff options
Diffstat (limited to 'arch/arm64/kvm/arch_timer.c')
| -rw-r--r-- | arch/arm64/kvm/arch_timer.c | 13 | 
1 files changed, 6 insertions, 7 deletions
| diff --git a/arch/arm64/kvm/arch_timer.c b/arch/arm64/kvm/arch_timer.c index 3df67c127489..6e542e2eae32 100644 --- a/arch/arm64/kvm/arch_timer.c +++ b/arch/arm64/kvm/arch_timer.c @@ -467,7 +467,7 @@ out:  }  /* - * Schedule the background timer before calling kvm_vcpu_block, so that this + * Schedule the background timer before calling kvm_vcpu_halt, so that this   * thread is removed from its waitqueue and made runnable when there's a timer   * interrupt to handle.   */ @@ -649,7 +649,6 @@ void kvm_timer_vcpu_put(struct kvm_vcpu *vcpu)  {  	struct arch_timer_cpu *timer = vcpu_timer(vcpu);  	struct timer_map map; -	struct rcuwait *wait = kvm_arch_vcpu_get_wait(vcpu);  	if (unlikely(!timer->enabled))  		return; @@ -672,7 +671,7 @@ void kvm_timer_vcpu_put(struct kvm_vcpu *vcpu)  	if (map.emul_ptimer)  		soft_timer_cancel(&map.emul_ptimer->hrtimer); -	if (rcuwait_active(wait)) +	if (kvm_vcpu_is_blocking(vcpu))  		kvm_timer_blocking(vcpu);  	/* @@ -750,7 +749,7 @@ int kvm_timer_vcpu_reset(struct kvm_vcpu *vcpu)  /* Make the updates of cntvoff for all vtimer contexts atomic */  static void update_vtimer_cntvoff(struct kvm_vcpu *vcpu, u64 cntvoff)  { -	int i; +	unsigned long i;  	struct kvm *kvm = vcpu->kvm;  	struct kvm_vcpu *tmp; @@ -1189,8 +1188,8 @@ void kvm_timer_vcpu_terminate(struct kvm_vcpu *vcpu)  static bool timer_irqs_are_valid(struct kvm_vcpu *vcpu)  { -	int vtimer_irq, ptimer_irq; -	int i, ret; +	int vtimer_irq, ptimer_irq, ret; +	unsigned long i;  	vtimer_irq = vcpu_vtimer(vcpu)->irq.irq;  	ret = kvm_vgic_set_owner(vcpu, vtimer_irq, vcpu_vtimer(vcpu)); @@ -1297,7 +1296,7 @@ void kvm_timer_init_vhe(void)  static void set_timer_irqs(struct kvm *kvm, int vtimer_irq, int ptimer_irq)  {  	struct kvm_vcpu *vcpu; -	int i; +	unsigned long i;  	kvm_for_each_vcpu(i, vcpu, kvm) {  		vcpu_vtimer(vcpu)->irq.irq = vtimer_irq; |