Re: [PATCH 1/2] arm/arm64: KVM: vgic: use nr_shared instead of calling vgic_nr_shared_irqs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 14/11/14 11:09, Shannon Zhao wrote:
> In "compute_pending_for_cpu" assign vgic_nr_shared_irqs(dist) to
> nr_shared, so just use nr_shared directly instead of calling
> vgic_nr_shared_irqs again.
> 
> Signed-off-by: Shannon Zhao <zhaoshenglong@xxxxxxxxxx>

Looks good to me.

Acked-by: Marc Zyngier <marc.zyngier@xxxxxxx>

	M.

> ---
>  virt/kvm/arm/vgic.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/virt/kvm/arm/vgic.c b/virt/kvm/arm/vgic.c
> index 3aaca49..82db9d6 100644
> --- a/virt/kvm/arm/vgic.c
> +++ b/virt/kvm/arm/vgic.c
> @@ -1165,7 +1165,7 @@ static int compute_pending_for_cpu(struct kvm_vcpu *vcpu)
>  	pending_private = find_first_bit(pend_percpu, VGIC_NR_PRIVATE_IRQS);
>  	pending_shared = find_first_bit(pend_shared, nr_shared);
>  	return (pending_private < VGIC_NR_PRIVATE_IRQS ||
> -		pending_shared < vgic_nr_shared_irqs(dist));
> +		pending_shared < nr_shared);
>  }
>  
>  /*
> 


-- 
Jazz is not dead. It just smells funny...

_______________________________________________
kvmarm mailing list
kvmarm@xxxxxxxxxxxxxxxxxxxxx
https://lists.cs.columbia.edu/mailman/listinfo/kvmarm




[Index of Archives]     [Linux KVM]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux