Skip to content

Commit

Permalink
KVM: arm/arm64: vgic: Rename kvm_vgic_vcpu_init to kvm_vgic_vcpu_enable
Browse files Browse the repository at this point in the history
This function really doesn't init anything, it enables the CPU
interface, so name it as such, which gives us the name to use for actual
init work later on.

Signed-off-by: Christoffer Dall <[email protected]>
Reviewed-by: Eric Auger <[email protected]>
  • Loading branch information
Christoffer Dall committed May 9, 2017
1 parent cb9d043 commit 443c3a9
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions virt/kvm/arm/vgic/vgic-init.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,11 +226,7 @@ static int kvm_vgic_dist_init(struct kvm *kvm, unsigned int nr_spis)
return 0;
}

/**
* kvm_vgic_vcpu_init() - Enable the VCPU interface
* @vcpu: the VCPU which's VGIC should be enabled
*/
static void kvm_vgic_vcpu_init(struct kvm_vcpu *vcpu)
static void kvm_vgic_vcpu_enable(struct kvm_vcpu *vcpu)
{
if (kvm_vgic_global_state.type == VGIC_V2)
vgic_v2_enable(vcpu);
Expand Down Expand Up @@ -269,7 +265,7 @@ int vgic_init(struct kvm *kvm)
dist->msis_require_devid = true;

kvm_for_each_vcpu(i, vcpu, kvm)
kvm_vgic_vcpu_init(vcpu);
kvm_vgic_vcpu_enable(vcpu);

ret = kvm_vgic_setup_default_irq_routing(kvm);
if (ret)
Expand Down

0 comments on commit 443c3a9

Please sign in to comment.