Skip to contentSkip to conversation

xen/arm: vtimer: rename vcpu_domain_init into domain_vtimer_init

PATCH In review Julien Grall 2 participants 2 messages May 1, 2014 – May 2, 2014

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 xen/arm: vtimer: rename vcpu_domain_init into domain_vtimer_init

The current function name vcpu_domain_init doesn't reflect what the function does and might be misused.

Rename it into domain_vtimer_init.

---
Changes in v2:
- By mistake I replaced an = by ==

---
 xen/arch/arm/domain.c |    2 +-
 xen/arch/arm/vtimer.c |    2 +-
 xen/arch/arm/vtimer.h |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
xen/arch/arm/domain.c +1 -1
index c47db4a..575a5a3 100644
@@ -519,7 +519,7 @@ int arch_domain_create(struct domain *d, unsigned int domcr_flags)
     if ( (rc = domain_vgic_init(d)) != 0 )
         goto fail;
 
-    if ( (rc = vcpu_domain_init(d)) != 0 )
+    if ( (rc = domain_vtimer_init(d)) != 0 )
         goto fail;
 
     if ( d->domain_id )
xen/arch/arm/vtimer.c +1 -1
index c515e7e..f68d16a 100644
@@ -44,7 +44,7 @@ static void virt_timer_expired(void *data)
     vgic_vcpu_inject_irq(t->v, t->irq, 1);
 }
 
-int vcpu_domain_init(struct domain *d)
+int domain_vtimer_init(struct domain *d)
 {
     d->arch.phys_timer_base.offset = NOW();
     d->arch.virt_timer_base.offset = READ_SYSREG64(CNTPCT_EL0);
xen/arch/arm/vtimer.h +1 -1
index bcf910e..6d2e46e 100644
@@ -20,7 +20,7 @@
 #ifndef __ARCH_ARM_VTIMER_H__
 #define __ARCH_ARM_VTIMER_H__
 
-extern int vcpu_domain_init(struct domain *d);
+extern int domain_vtimer_init(struct domain *d);
 extern int vcpu_vtimer_init(struct vcpu *v);
 extern int vtimer_emulate(struct cpu_user_regs *regs, union hsr hsr);
 extern int virt_timer_save(struct vcpu *v);
Signature · 1 line
1.7.10.4
#1 lore raw
Quoted 6 lines · Julien Grall

The current function name vcpu_domain_init doesn't reflect what the function does and might be misused.

Rename it into domain_vtimer_init.

Acked + applied.